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:
@@ -36,6 +36,6 @@ static int json_c_snprintf(char *str, size_t size, const char *format, ...)
|
||||
|
||||
#elif !defined(HAVE_SNPRINTF) /* !HAVE_SNPRINTF */
|
||||
#error snprintf is required but was not found
|
||||
#endif /* !HAVE_SNPRINTF && defined(WIN32) */
|
||||
#endif /* !HAVE_SNPRINTF */
|
||||
|
||||
#endif /* __snprintf_compat_h */
|
||||
|
||||
Reference in New Issue
Block a user