From 5d89fc8a9d1c926ab341f49f41be1c38c7049161 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Mon, 25 May 2020 03:52:36 +0000 Subject: [PATCH] Add some backwards compat for Visual Studio 2013. --- json_object.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.49.0