From b7773fd105af14d3c8b561df922adc2eda599d10 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 9 Apr 2022 23:58:34 +0800 Subject: [PATCH] util: Define WIN32_LEAN_AND_MEAN before include of `windows.h` in u_thread.h This is a prepare for move the c11 threads implementation into c source code Signed-off-by: Yonggang Luo Reviewed-by: Jesse Natalie Part-of: --- src/util/u_thread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/u_thread.h b/src/util/u_thread.h index d06ff6beddb..7d50e5ca87a 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -50,6 +50,9 @@ #if DETECT_OS_LINUX && !defined(ANDROID) #include #elif defined(_WIN32) && !defined(__CYGWIN__) && _WIN32_WINNT >= 0x0600 +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif #include #endif