mirror of
https://github.com/json-c/json-c.git
synced 2026-04-04 21:09:06 +08:00
Support MSVC in packages that use GNU Autoconf.
Fixes https://github.com/json-c/json-c/issues/909 When ssize_t is defined as a macro, typically through a package's config.h file, the installed json*.h files must not attempt to define ssize_t via typedef.
This commit is contained in:
@@ -28,7 +28,7 @@ struct json_object;
|
||||
#include <unistd.h>
|
||||
#endif /* HAVE_UNISTD_H */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(ssize_t)
|
||||
#include <BaseTsd.h>
|
||||
typedef SSIZE_T ssize_t;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user