summaryrefslogtreecommitdiff
path: root/boost/context/execution_context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/context/execution_context.hpp')
-rw-r--r--boost/context/execution_context.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/boost/context/execution_context.hpp b/boost/context/execution_context.hpp
index 9d9294f91d..2eb02e12ee 100644
--- a/boost/context/execution_context.hpp
+++ b/boost/context/execution_context.hpp
@@ -8,7 +8,11 @@
#if ! defined(BOOST_CONTEXT_NO_CXX11)
# if (defined(BOOST_EXECUTION_CONTEXT) && (BOOST_EXECUTION_CONTEXT == 1))
-# include <boost/context/execution_context_v1.hpp>
+# if !defined(BOOST_NO_CXX11_THREAD_LOCAL)
+# include <boost/context/execution_context_v1.hpp>
+# else
+# error "keyword thread_local not supported"
+# endif
# else
# include <boost/context/execution_context_v2.hpp>
# endif