]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Move the ssize_t typedef from json_inttypes.h to json_object_private.h so as not...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 7 Jun 2020 18:29:56 +0000 (18:29 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 7 Jun 2020 18:29:56 +0000 (18:29 +0000)
json_inttypes.h
json_object_private.h

index e51da74385b23268976d0e2515e36384e14bb3af..e047d4f18b48901071ff265072d0f8a3f54f49b7 100644 (file)
@@ -21,9 +21,4 @@
 
 #endif
 
-#ifdef _MSC_VER
-#include <BaseTsd.h>
-typedef SSIZE_T ssize_t;
-#endif
-
 #endif
index c7b4d1f1764037d53131ec1bb68e24385e70b981..8132a3375f203d843fba001c8e8f837179592c7b 100644 (file)
@@ -24,6 +24,11 @@ struct json_object;
 #include "json_inttypes.h"
 #include "json_types.h"
 
+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
+
 typedef void (json_object_private_delete_fn)(struct json_object *o);
 
 /* json object int type, support extension*/