rename WIN32 to _WIN32

The latter is the proper macro defined by Windows headers.

Fixes compilation under at least clang-cl which mandates function
declarations.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2024-02-07 18:06:55 -08:00
parent dabed80523
commit 66f7869219
5 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -2,11 +2,11 @@
#undef NDEBUG
#endif
#include "strerror_override.h"
#ifdef WIN32
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <io.h>
#include <windows.h>
#endif /* defined(WIN32) */
#endif /* defined(_WIN32) */
#include <fcntl.h>
#include <limits.h>
#include <stddef.h>