summaryrefslogtreecommitdiff
path: root/boost/context/detail/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/context/detail/config.hpp')
-rw-r--r--boost/context/detail/config.hpp34
1 files changed, 29 insertions, 5 deletions
diff --git a/boost/context/detail/config.hpp b/boost/context/detail/config.hpp
index c30c8f8b84..28edf1f953 100644
--- a/boost/context/detail/config.hpp
+++ b/boost/context/detail/config.hpp
@@ -1,5 +1,5 @@
-// Copyright Oliver Kowalke 2009.
+// Copyright Oliver Kowalke 2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
@@ -37,13 +37,37 @@
#undef BOOST_CONTEXT_CALLDECL
#if (defined(i386) || defined(__i386__) || defined(__i386) \
- || defined(__i486__) || defined(__i586__) || defined(__i686__) \
- || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) \
- || defined(__I86__) || defined(__INTEL__) || defined(__IA32__) \
- || defined(_M_IX86) || defined(_I86_)) && defined(BOOST_WINDOWS)
+ || defined(__i486__) || defined(__i586__) || defined(__i686__) \
+ || defined(__X86__) || defined(_X86_) || defined(__THW_INTEL__) \
+ || defined(__I86__) || defined(__INTEL__) || defined(__IA32__) \
+ || defined(_M_IX86) || defined(_I86_)) && defined(BOOST_WINDOWS)
# define BOOST_CONTEXT_CALLDECL __cdecl
#else
# define BOOST_CONTEXT_CALLDECL
#endif
+#if defined(BOOST_USE_SEGMENTED_STACKS)
+# if ! ( (defined(__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 6) || \
+ (defined(__clang__) && __clang_major__ > 2 && __clang_minor__ > 3) )
+# error "compiler does not support segmented_stack stacks"
+# endif
+# define BOOST_CONTEXT_SEGMENTS 10
+#endif
+
+#undef BOOST_CONTEXT_NO_EXECUTION_CONTEXT
+#if defined( BOOST_NO_CXX11_DECLTYPE) || \
+ defined( BOOST_NO_CXX11_DELETED_FUNCTIONS) || \
+ defined( BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) || \
+ defined( BOOST_NO_CXX11_HDR_TUPLE) || \
+ defined( BOOST_NO_CXX11_LAMBDAS) || \
+ defined( BOOST_NO_CXX11_NOEXCEPT) || \
+ defined( BOOST_NO_CXX11_NULLPTR) || \
+ defined( BOOST_NO_CXX11_TEMPLATE_ALIASES) || \
+ defined( BOOST_NO_CXX11_RVALUE_REFERENCES) || \
+ defined( BOOST_NO_CXX11_VARIADIC_MACROS) || \
+ defined( BOOST_NO_CXX11_VARIADIC_TEMPLATES) || \
+ defined( BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES)
+# define BOOST_CONTEXT_NO_EXECUTION_CONTEXT
+#endif
+
#endif // BOOST_CONTEXT_DETAIL_CONFIG_H