1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-01 12:57:51 +02:00

Merge pull request #3715 from Alexander-Wilms/deprecated-boost-header

Disable warnings about boost including deprecated headers internally
This commit is contained in:
Ivan Savenko 2024-04-09 12:48:47 +03:00 committed by GitHub
commit eddd854951
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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