Skip to content

Commit

Permalink
Merge pull request #155 from viric/cygwin_fix_crash
Browse files Browse the repository at this point in the history
In cygwin we want to use UCONTEXT
  • Loading branch information
olk authored Dec 17, 2020
2 parents 683e5d7 + e785657 commit 9efbe60
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 9efbe60

Please sign in to comment.