1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-04 22:14:25 +02:00

* check for boost version before using thread v3 (brings back compatibility for boost 1.49 and older)

This commit is contained in:
mateuszb 2012-09-16 15:49:22 +00:00
parent 2b2b02cccc
commit 473fbb4a31

View File

@ -50,8 +50,12 @@
#include <vector> #include <vector>
//The only available version is 3, as of Boost 1.50 //The only available version is 3, as of Boost 1.50
#include <boost/version.hpp>
#define BOOST_FILESYSTEM_VERSION 3 #define BOOST_FILESYSTEM_VERSION 3
#if ( BOOST_VERSION>105000 )
#define BOOST_THREAD_VERSION 3 #define BOOST_THREAD_VERSION 3
#endif
#define BOOST_THREAD_DONT_PROVIDE_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE 1 #define BOOST_THREAD_DONT_PROVIDE_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE 1
//#define BOOST_SYSTEM_NO_DEPRECATED 1 //#define BOOST_SYSTEM_NO_DEPRECATED 1