From 323d321a779aaf132c29ca1fd7545165754ff00d Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 19 Jul 2021 19:35:22 -0400 Subject: [PATCH] [host] windows: correctly declare WINVER and _WIN32_WINNT We wanted to target Windows Vista, which is 0x0600 not 0x6000. 0x6000 is in fact larger than Windows 10 which is 0x0a00. --- host/platform/Windows/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/CMakeLists.txt b/host/platform/Windows/CMakeLists.txt index 46452fc3..b5c702f5 100644 --- a/host/platform/Windows/CMakeLists.txt +++ b/host/platform/Windows/CMakeLists.txt @@ -15,7 +15,7 @@ add_library(platform_Windows STATIC ) # allow use of functions for Windows Vista or later -add_definitions(-D _WIN32_WINNT=0x6000) +add_compile_definitions(WINVER=0x0600 _WIN32_WINNT=0x0600) add_subdirectory("capture")