Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gstädtner <thomas@gstaedtner.net>2013-03-05 04:30:51 +0400
committerFelix Fietkau <nbd@openwrt.org>2013-03-05 13:44:48 +0400
commit49e6e062b8effe281a85de167c16c5f039b74442 (patch)
treeea1b577e948a83be1f6e39daeefaf0d4ae45da80 /blobmsg_json.h
parentb2010c706c85c621d5795304fd94711eb400321a (diff)
add pkgconfig support for json-c
this includes a fallback for legacy support
Diffstat (limited to 'blobmsg_json.h')
-rw-r--r--blobmsg_json.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/blobmsg_json.h b/blobmsg_json.h
index 4471a4e..45ebd6d 100644
--- a/blobmsg_json.h
+++ b/blobmsg_json.h
@@ -16,7 +16,12 @@
#ifndef __BLOBMSG_JSON_H
#define __BLOBMSG_JSON_H
-#include <json/json.h>
+#ifdef JSONC
+ #include <json.h>
+#else
+ #include <json/json.h>
+#endif
+
#include <stdbool.h>
#include "blobmsg.h"