Fix build against boost 1.68+
In Boost 1.68, the `boost/context/all.hpp` header was removed.
Ref: 2e37599461
If building against Boost 1.68+, use `boost/context/continuation_fcontext.hpp` instead.
This commit is contained in:
parent
9cce60c917
commit
2e0a03ac1f
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <fc/thread/thread.hpp>
|
#include <fc/thread/thread.hpp>
|
||||||
#include <boost/context/all.hpp>
|
|
||||||
#include <fc/exception/exception.hpp>
|
#include <fc/exception/exception.hpp>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
@ -9,6 +8,12 @@
|
||||||
#define BOOST_COROUTINES_NO_DEPRECATION_WARNING // Boost 1.61
|
#define BOOST_COROUTINES_NO_DEPRECATION_WARNING // Boost 1.61
|
||||||
#define BOOST_COROUTINE_NO_DEPRECATION_WARNING // Boost 1.62
|
#define BOOST_COROUTINE_NO_DEPRECATION_WARNING // Boost 1.62
|
||||||
|
|
||||||
|
#if BOOST_VERSION >= 106800
|
||||||
|
#include <boost/context/continuation_fcontext.hpp>
|
||||||
|
#else
|
||||||
|
#include <boost/context/all.hpp>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if BOOST_VERSION >= 106100
|
#if BOOST_VERSION >= 106100
|
||||||
#include <boost/coroutine/stack_allocator.hpp>
|
#include <boost/coroutine/stack_allocator.hpp>
|
||||||
namespace bc = boost::context::detail;
|
namespace bc = boost::context::detail;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue