From 6ab0e2070cd6b7431b1f034c191677a1b04f1e96 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 1 Nov 2024 13:39:03 +0800 Subject: [PATCH] fwd: Define `_WIN32_WINNT` if it's not defined at all (cherry picked from commit e1c6c6b556b1fb9a6e50397ea2f3b904b5ec01e0) Signed-off-by: LIU Hao --- mcfgthread/fwd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mcfgthread/fwd.h b/mcfgthread/fwd.h index 2a8888007f..50c395b7ae 100644 --- a/mcfgthread/fwd.h +++ b/mcfgthread/fwd.h @@ -15,7 +15,9 @@ #include #include -#if !defined _WIN32_WINNT || (_WIN32_WINNT < 0x0601) +#if !defined _WIN32_WINNT +# define _WIN32_WINNT 0x0601 +#elif _WIN32_WINNT < 0x0601 # error Please define `_WIN32_WINNT` to at least Windows 7. #endif