From 9e3e60616f947cbfa00cc1c0640d8a3c764ccba0 Mon Sep 17 00:00:00 2001 From: ithewei Date: Mon, 19 Aug 2024 18:07:03 +0800 Subject: [PATCH] fix #421: #define _WIN32_WINNT 0x0600 --- base/hplatform.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/hplatform.h b/base/hplatform.h index dada66258..442ba7bf7 100644 --- a/base/hplatform.h +++ b/base/hplatform.h @@ -143,6 +143,12 @@ // headers #ifdef OS_WIN + #ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x0600 + #elif _WIN32_WINNT < 0x0600 + #undef _WIN32_WINNT + #define _WIN32_WINNT 0x0600 + #endif #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif