mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
* check for boost version before using thread v3 (brings back compatibility for boost 1.49 and older)
This commit is contained in:
parent
2b2b02cccc
commit
473fbb4a31
4
Global.h
4
Global.h
@ -50,8 +50,12 @@
|
||||
#include <vector>
|
||||
|
||||
//The only available version is 3, as of Boost 1.50
|
||||
#include <boost/version.hpp>
|
||||
|
||||
#define BOOST_FILESYSTEM_VERSION 3
|
||||
#if ( BOOST_VERSION>105000 )
|
||||
#define BOOST_THREAD_VERSION 3
|
||||
#endif
|
||||
#define BOOST_THREAD_DONT_PROVIDE_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE 1
|
||||
//#define BOOST_SYSTEM_NO_DEPRECATED 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user