diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-05-25 03:52:36 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-05-25 03:52:36 +0000 |
commit | 5d89fc8a9d1c926ab341f49f41be1c38c7049161 (patch) | |
tree | a4dcd2b78f1ddc7ebaf6f3a21a1a87549482c267 | |
parent | 02b687b9a6e535591a360f109d1825db9a5a6b52 (diff) | |
download | json-c-5d89fc8a9d1c926ab341f49f41be1c38c7049161.tar.gz |
Add some backwards compat for Visual Studio 2013.
-rw-r--r-- | json_object.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/json_object.c b/json_object.c index 6d80762..9b4df33 100644 --- a/json_object.c +++ b/json_object.c @@ -48,6 +48,11 @@ static void json_object_generic_delete(struct json_object *jso); static void Xjson_object_generic_delete(struct json_object_base *jso); static struct json_object *json_object_new(enum json_type o_type); +#if defined(_MSC_VER) && (_MSC_VER <= 1800) +/* VS2013 doesn't know about "inline" */ +#define inline __inline +#endif + // XAX kill this once json_object_base is renamed back to json_object static inline struct json_object *PUBLIC(struct json_object_base *jso) { |