From e785657ec4d6a885ba2fd49c3ad8eaeac1f71a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 16 Dec 2020 20:11:19 +0100 Subject: [PATCH] In cygwin we want to use UCONTEXT Crash otherwise. I haven't tried winfibers. --- include/boost/context/detail/config.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/context/detail/config.hpp b/include/boost/context/detail/config.hpp index dbce9a09..06737fdf 100644 --- a/include/boost/context/detail/config.hpp +++ b/include/boost/context/detail/config.hpp @@ -30,6 +30,10 @@ # define BOOST_CONTEXT_DECL #endif +#if ! defined(BOOST_USE_UCONTEXT) && defined(__CYGWIN__) +# define BOOST_USE_UCONTEXT +#endif + #if ! defined(BOOST_CONTEXT_SOURCE) && ! defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_CONTEXT_NO_LIB) # define BOOST_LIB_NAME boost_context # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTEXT_DYN_LINK)