Browse Source

Add some backwards compat for Visual Studio 2013.

tags/json-c-0.15-20200726
Eric Haszlakiewicz 5 years ago
parent
commit
5d89fc8a9d
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      json_object.c

+ 5
- 0
json_object.c View File

@@ -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)
{


Loading…
Cancel
Save