Skip to content

Commit

Permalink
In cygwin we want to use UCONTEXT
Browse files Browse the repository at this point in the history
Crash otherwise.

I haven't tried winfibers.
  • Loading branch information
viric committed Dec 16, 2020
1 parent b2875be commit e785657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/boost/context/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e785657

Please sign in to comment.