From 0367f48450de81607797db3cd0703f72d858ec4c Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 9 Jan 2023 07:48:00 +0100 Subject: [PATCH] Bump WINVER to 0x0600 (Windows Vista) This is required to use SRW locks in Windows - see `src/crypto/c_threads.h` --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02c02ea28..384d93018 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -814,7 +814,7 @@ else() set(USE_LTO_DEFAULT false) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack,10485760") if(NOT BUILD_64) - add_definitions(-DWINVER=0x0501 -D_WIN32_WINNT=0x0501) + add_definitions(-DWINVER=0x0600 -D_WIN32_WINNT=0x0600) endif() endif() set(C_WARNINGS "-Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes")