2017-12-11 16:58:00 +00:00
|
|
|
commit 1b824dd6389e209eab752d5a698c6093f311e3e3
|
2017-12-11 15:13:09 +00:00
|
|
|
Author: Björn Esser <besser82@fedoraproject.org>
|
|
|
|
Date: Mon Dec 11 15:46:06 2017 +0100
|
|
|
|
|
|
|
|
modules/json: Adaptions for json-c v0.13
|
|
|
|
|
|
|
|
diff --git a/modules/json/json-parser.c b/modules/json/json-parser.c
|
2017-12-11 16:58:00 +00:00
|
|
|
index 0368ed8f..356df48b 100644
|
2017-12-11 15:13:09 +00:00
|
|
|
--- a/modules/json/json-parser.c
|
|
|
|
+++ b/modules/json/json-parser.c
|
2017-12-11 16:58:00 +00:00
|
|
|
@@ -20,6 +20,8 @@
|
|
|
|
* COPYING for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#define JSON_C_VER_013 (13 << 8)
|
|
|
|
+
|
|
|
|
#include "json-parser.h"
|
|
|
|
#include "dot-notation.h"
|
|
|
|
#include "scratch-buffers.h"
|
|
|
|
@@ -28,7 +30,10 @@
|
2017-12-11 15:13:09 +00:00
|
|
|
#include <ctype.h>
|
|
|
|
|
|
|
|
#include <json.h>
|
|
|
|
+
|
2017-12-11 16:58:00 +00:00
|
|
|
+#if (!defined(JSON_C_VERSION_NUM)) || (JSON_C_VERSION_NUM < JSON_C_VER_013)
|
2017-12-11 15:13:09 +00:00
|
|
|
#include <json_object_private.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
typedef struct _JSONParser
|
|
|
|
{
|