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
2023-09-13 20:51:49 -07:00
parent dabed80523
commit 66f7869219
5 changed files with 14 additions and 14 deletions

View File

@@ -37,13 +37,13 @@
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#ifdef WIN32
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <io.h>
#include <windows.h>
#endif /* defined(WIN32) */
#endif /* defined(_WIN32) */
#if !defined(HAVE_OPEN) && defined(WIN32)
#if !defined(HAVE_OPEN) && defined(_WIN32)
#define open _open
#endif