mirror of
https://github.com/boostorg/thread.git
synced 2026-01-21 17:32:18 +00:00
Make sure _WIN32_WINNT is defined when windows.h is included. This is achieved by (a) making sure boost/detail/winapi/config.hpp is included before any other headers and (b) BOOST_USE_WINDOWS_H is defined so that the header defines _WIN32_WINNT based on the default target Windows version. This ensures that all APIs used by the implementation are available. Also extracted WIN32_LEAN_AND_MEAN definition to the Jamfile so that it is consistently defined for all translation units instead of only tss*.cpp.