mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Disable warnings about boost 1.7.4 including deprecated headers internally
This commit is contained in:
parent
1d453a0c9d
commit
ef417a0db0
3
Global.h
3
Global.h
@ -149,6 +149,9 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
|
||||
#if BOOST_VERSION > 105000
|
||||
# define BOOST_THREAD_VERSION 3
|
||||
#endif
|
||||
#if BOOST_VERSION == 107400
|
||||
# define BOOST_ALLOW_DEPRECATED_HEADERS
|
||||
#endif
|
||||
#define BOOST_THREAD_DONT_PROVIDE_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE 1
|
||||
//need to link boost thread dynamically to avoid https://stackoverflow.com/questions/35978572/boost-thread-interupt-does-not-work-when-crossing-a-dll-boundary
|
||||
#define BOOST_THREAD_USE_DLL //for example VCAI::finish() may freeze on thread join after interrupt when linking this statically
|
||||
|
Loading…
Reference in New Issue
Block a user