diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-23 14:03:32 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-23 14:03:32 +0400 |
commit | 6f2c688d68f57dedede87e08e74d82ac18244fa0 (patch) | |
tree | 4381689a2fd2f77c45c7316e35acbe23416579ee /blobmsg_json.c | |
parent | c8fc0897cdfff6393919030e24809e938ee5076f (diff) |
blobmsg_json: include json.h inside blobmsg_json.c instead of the public header file
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'blobmsg_json.c')
-rw-r--r-- | blobmsg_json.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/blobmsg_json.c b/blobmsg_json.c index 5aa528b..ffde23d 100644 --- 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) { |