externc.hpp 670 B

1234567891011121314151617181920212223
  1. // Copyright Oliver Kowalke 2014.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. //
  6. #include <boost/config.hpp>
  7. #include <boost/context/detail/config.hpp>
  8. #if defined(BOOST_USE_ASAN)
  9. extern "C" {
  10. void __sanitizer_start_switch_fiber( void **, const void *, size_t);
  11. void __sanitizer_finish_switch_fiber( void *, const void **, size_t *);
  12. }
  13. #endif
  14. #if defined(BOOST_USE_SEGMENTED_STACKS)
  15. extern "C" {
  16. void __splitstack_getcontext( void * [BOOST_CONTEXT_SEGMENTS]);
  17. void __splitstack_setcontext( void * [BOOST_CONTEXT_SEGMENTS]);
  18. }
  19. #endif