mirror of
https://github.com/json-c/json-c.git
synced 2026-04-02 03:49:06 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user