From e0217424f3f3cc4e4e8e4c9378ff403d5a4fc07f Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Tue, 17 Feb 2015 14:42:39 +0000 Subject: [PATCH] Make mandatory that the Win32 API version configured is at least Windows XP or higher. --- include/boost/thread/detail/config.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/thread/detail/config.hpp b/include/boost/thread/detail/config.hpp index 475dadba..aab7d8c5 100644 --- a/include/boost/thread/detail/config.hpp +++ b/include/boost/thread/detail/config.hpp @@ -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