From: Eric Haszlakiewicz Date: Mon, 25 May 2020 03:52:36 +0000 (+0000) Subject: Add some backwards compat for Visual Studio 2013. X-Git-Tag: json-c-0.15-20200726~34^2~16 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5d89fc8a9d1c926ab341f49f41be1c38c7049161;p=thirdparty%2Fjson-c.git Add some backwards compat for Visual Studio 2013. --- diff --git a/json_object.c b/json_object.c index 6d807628..9b4df330 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) {