mirror of
https://github.com/boostorg/thread.git
synced 2026-01-24 18:32:32 +00:00
Make mandatory that the Win32 API version configured is at least Windows XP or higher.
This commit is contained in:
parent
90ba3ae7c6
commit
e0217424f3
@@ -63,10 +63,19 @@
|
||||
#define BOOST_THREAD_DONT_PROVIDE_FUTURE_CTOR_ALLOCATORS
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#if defined(_WIN32_WINNT)
|
||||
#if _WIN32_WINNT < 0x501
|
||||
#error Boost.Thread requires that _WIN32_WINNT must be 0x501 or greater (Microsoft Windows XP API or better)
|
||||
#else
|
||||
#define _WIN32_WINNT 0x501
|
||||
#endif
|
||||
#endif
|
||||
#if defined _WIN32_WCE && _WIN32_WCE==0x501 \
|
||||
&& ! defined BOOST_THREAD_DONT_PROVIDE_FUTURE_CTOR_ALLOCATORS
|
||||
#define BOOST_THREAD_DONT_PROVIDE_FUTURE_CTOR_ALLOCATORS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#if defined BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX || defined BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
||||
|
||||
Reference in New Issue
Block a user