From 2e0a03ac1fbe1d71705b960c5eaa9d91132b2199 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Wed, 7 Nov 2018 11:07:34 -0600 Subject: [PATCH] Fix build against boost 1.68+ In Boost 1.68, the `boost/context/all.hpp` header was removed. Ref: https://github.com/boostorg/context/commit/2e37599461912cc1679f106a25456a493f7f0b27 If building against Boost 1.68+, use `boost/context/continuation_fcontext.hpp` instead. --- src/thread/context.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/thread/context.hpp b/src/thread/context.hpp index 18a060c69..51450ccb6 100644 --- a/src/thread/context.hpp +++ b/src/thread/context.hpp @@ -1,6 +1,5 @@ #pragma once #include -#include #include #include @@ -9,6 +8,12 @@ #define BOOST_COROUTINES_NO_DEPRECATION_WARNING // Boost 1.61 #define BOOST_COROUTINE_NO_DEPRECATION_WARNING // Boost 1.62 +#if BOOST_VERSION >= 106800 +#include +#else +#include +#endif + #if BOOST_VERSION >= 106100 #include namespace bc = boost::context::detail;