2 // Copyright Oliver Kowalke 2014.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_COROUTINES2_SEGMENTED_H
8 #define BOOST_COROUTINES2_SEGMENTED_H
12 #include <boost/assert.hpp>
13 #include <boost/config.hpp>
14 #include <boost/context/segmented_stack.hpp>
16 #include <boost/coroutine2/detail/coroutine.hpp>
18 #ifdef BOOST_HAS_ABI_HEADERS
19 # include BOOST_ABI_PREFIX
23 namespace coroutines2 {
25 #if defined(BOOST_USE_SEGMENTED_STACKS)
26 # if ! defined(BOOST_WINDOWS)
27 using segmented_stack = boost::context::segmented_stack;
28 using default_stack = boost::context::default_stack;
34 #ifdef BOOST_HAS_ABI_HEADERS
35 # include BOOST_ABI_SUFFIX
38 #endif // BOOST_COROUTINES2_SEGMENTED_H