projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
blobmsg_json: include json.h inside blobmsg_json.c instead of the public header file
[project/libubox.git]
/
blobmsg_json.c
diff --git
a/blobmsg_json.c
b/blobmsg_json.c
index 5aa528bc338abbd0e7621931e421349f4e7ebca4..ffde23d33e15d11829bfea631aab3004f377751a 100644
(file)
--- a/
blobmsg_json.c
+++ b/
blobmsg_json.c
@@
-17,6
+17,12
@@
#include "blobmsg.h"
#include "blobmsg_json.h"
+#ifdef JSONC
+ #include <json.h>
+#else
+ #include <json/json.h>
+#endif
+
bool blobmsg_add_object(struct blob_buf *b, json_object *obj)
{
json_object_object_foreach(obj, key, val) {