From ca6d6c2ec1c99e5fc0212427f9044a92c1af6edb Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Thu, 4 Jun 2015 08:30:35 +0200 Subject: [PATCH] add preprocessor error if execution_context is not supported --- include/boost/coroutine2/detail/config.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/coroutine2/detail/config.hpp b/include/boost/coroutine2/detail/config.hpp index 3588128..c439ecc 100644 --- a/include/boost/coroutine2/detail/config.hpp +++ b/include/boost/coroutine2/detail/config.hpp @@ -8,6 +8,7 @@ #define BOOST_COROUTINES2_DETAIL_CONFIG_H #include +#include #include #ifdef BOOST_COROUTINES2_DECL @@ -43,7 +44,8 @@ # define BOOST_COROUTINES2_SEGMENTS 10 #endif -#define BOOST_COROUTINES2_UNIDIRECT -#define BOOST_COROUTINES2_SYMMETRIC +#if defined(BOOST_CONTEXT_NO_EXECUTION_CONTEXT) +# error "execution_context from boost.context not supported" +#endif #endif // BOOST_COROUTINES2_DETAIL_CONFIG_H