diff --git a/CMakeLists.txt b/CMakeLists.txt index a7590452d..440af8be5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,6 +142,7 @@ endif() if(WIN32 OR CYGWIN) target_compile_definitions(boost_filesystem PRIVATE BOOST_USE_WINDOWS_H + _WIN32_WINNT=0x0A00 WIN32_LEAN_AND_MEAN NOMINMAX ) diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index f6c8e5d43..a37819021 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -161,9 +161,11 @@ project boost/filesystem windows:_CRT_SECURE_NO_WARNINGS windows:_CRT_SECURE_NO_DEPRECATE windows:BOOST_USE_WINDOWS_H + windows:_WIN32_WINNT=0x0A00 windows:WIN32_LEAN_AND_MEAN windows:NOMINMAX cygwin:BOOST_USE_WINDOWS_H + cygwin:_WIN32_WINNT=0x0A00 cygwin:WIN32_LEAN_AND_MEAN cygwin:NOMINMAX