diff options
author | Thomas Gstädtner <thomas@gstaedtner.net> | 2013-03-05 04:30:51 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-05 13:44:48 +0400 |
commit | 49e6e062b8effe281a85de167c16c5f039b74442 (patch) | |
tree | ea1b577e948a83be1f6e39daeefaf0d4ae45da80 /jshn.c | |
parent | b2010c706c85c621d5795304fd94711eb400321a (diff) |
add pkgconfig support for json-c
this includes a fallback for legacy support
Diffstat (limited to 'jshn.c')
-rw-r--r-- | jshn.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -13,7 +13,12 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <json/json.h> +#ifdef JSONC + #include <json.h> +#else + #include <json/json.h> +#endif + #include <string.h> #include <stdlib.h> #include <stdio.h> |