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 <luoyonggang@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36654>
This commit is contained in:
Yonggang Luo
2025-08-08 05:17:43 +08:00
committed by Marge Bot
parent 5b51dc3bf2
commit 8f88991024
+1 -1
View File
@@ -72,7 +72,7 @@
#define DETECT_OS_POSIX 1
#endif
#if defined(_WIN32) || defined(WIN32)
#if defined(_WIN32)
#define DETECT_OS_WINDOWS 1
#endif