X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fm4%2Fax_boost_context.m4;h=47f79471aa08a66c53164991e47b74fedb3d78e6;hb=0fd994133fbaafa1e4b6c86f5c14a101f2086e8c;hp=6843c390a7c6d36eb3182a6e79d52d2a48fa390f;hpb=87bb14efca96336f339e2680ef9a49c260326fd4;p=folly.git diff --git a/folly/m4/ax_boost_context.m4 b/folly/m4/ax_boost_context.m4 index 6843c390..47f79471 100644 --- a/folly/m4/ax_boost_context.m4 +++ b/folly/m4/ax_boost_context.m4 @@ -69,10 +69,16 @@ AC_DEFUN([AX_BOOST_CONTEXT], CXXFLAGS_SAVE=$CXXFLAGS AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[@%:@include -#include + [[@%:@include +#if BOOST_VERSION >= 106100 +#include +#else +#include +#endif ]], - [[#if BOOST_VERSION >= 105600 + [[#if BOOST_VERSION >= 106100 + boost::context::detail::fcontext_t fc = boost::context::detail::make_fcontext(0, 0, 0); +#elif BOOST_VERSION >= 105600 boost::context::fcontext_t fc = boost::context::make_fcontext(0, 0, 0); #else boost::context::fcontext_t* fc = boost::context::make_fcontext(0, 0, 0);