From 6f2c688d68f57dedede87e08e74d82ac18244fa0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 23 Sep 2014 12:03:32 +0200 Subject: [PATCH] blobmsg_json: include json.h inside blobmsg_json.c instead of the public header file Signed-off-by: Felix Fietkau --- blobmsg_json.c | 6 ++++++ blobmsg_json.h | 7 ++----- 2 files changed, 8 insertions(+), 5 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 +#else + #include +#endif + bool blobmsg_add_object(struct blob_buf *b, json_object *obj) { json_object_object_foreach(obj, key, val) { diff --git a/blobmsg_json.h b/blobmsg_json.h index e8036eb..5ea6f09 100644 --- a/blobmsg_json.h +++ b/blobmsg_json.h @@ -16,11 +16,8 @@ #ifndef __BLOBMSG_JSON_H #define __BLOBMSG_JSON_H -#ifdef JSONC - #include -#else - #include -#endif +struct json_object; +typedef struct json_object json_object; #include #include "blobmsg.h"