From 8f88991024c0e8cf28a98fac9b2ce031b9519acb Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 8 Aug 2025 05:17:43 +0800 Subject: [PATCH] util: Remove usage of WIN32 macro for DETECT_OS_WINDOWS As we use _WIN32 in many place, and WIN32 usage are depends on windows.h that defined in minwindef.h. So do not use it at all, after this change, DETECT_OS_WINDOWS and _WIN32 will have the same effect. This is for avoid confusion when DETECT_OS_WINDOWS and _WIN32 are mixed used. Signed-off-by: Yonggang Luo Acked-by: Eric Engestrom Reviewed-by: Erik Faye-Lund Part-of: --- src/util/detect_os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/detect_os.h b/src/util/detect_os.h index 86286dfbe70..74037240c74 100644 --- a/src/util/detect_os.h +++ b/src/util/detect_os.h @@ -72,7 +72,7 @@ #define DETECT_OS_POSIX 1 #endif -#if defined(_WIN32) || defined(WIN32) +#if defined(_WIN32) #define DETECT_OS_WINDOWS 1 #endif