diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-07 18:29:56 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-07 18:29:56 +0000 |
commit | ecdfeb18cf8df1bf519785f3353d1e4ab87c3a9c (patch) | |
tree | b9f3d18f4ea9f52ae9a86cce08157853395a5aa8 | |
parent | 66d91fdf86bb650201da37e704c29c197a1dadd9 (diff) | |
download | json-c-ecdfeb18cf8df1bf519785f3353d1e4ab87c3a9c.tar.gz |
Move the ssize_t typedef from json_inttypes.h to json_object_private.h so as not to affect publically exposed symbols.
-rw-r--r-- | json_inttypes.h | 5 | ||||
-rw-r--r-- | json_object_private.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/json_inttypes.h b/json_inttypes.h index e51da74..e047d4f 100644 --- a/json_inttypes.h +++ b/json_inttypes.h @@ -21,9 +21,4 @@ #endif -#ifdef _MSC_VER -#include <BaseTsd.h> -typedef SSIZE_T ssize_t; -#endif - #endif diff --git a/json_object_private.h b/json_object_private.h index c7b4d1f..8132a33 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 <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*/ |