From: Eric Haszlakiewicz Date: Sun, 7 Jun 2020 18:29:56 +0000 (+0000) Subject: Move the ssize_t typedef from json_inttypes.h to json_object_private.h so as not... X-Git-Tag: json-c-0.15-20200726~34^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecdfeb18cf8df1bf519785f3353d1e4ab87c3a9c;p=thirdparty%2Fjson-c.git Move the ssize_t typedef from json_inttypes.h to json_object_private.h so as not to affect publically exposed symbols. --- diff --git a/json_inttypes.h b/json_inttypes.h index e51da743..e047d4f1 100644 --- a/json_inttypes.h +++ b/json_inttypes.h @@ -21,9 +21,4 @@ #endif -#ifdef _MSC_VER -#include -typedef SSIZE_T ssize_t; -#endif - #endif diff --git a/json_object_private.h b/json_object_private.h index c7b4d1f1..8132a337 100644 --- a/json_object_private.h +++ b/json_object_private.h @@ -24,6 +24,11 @@ struct json_object; #include "json_inttypes.h" #include "json_types.h" +#ifdef _MSC_VER +#include +typedef SSIZE_T ssize_t; +#endif + typedef void (json_object_private_delete_fn)(struct json_object *o); /* json object int type, support extension*/