Skip to content

Commit 8ba8e20

Browse files
ffontainethiagomacieira
authored andcommitted
Update cjson include path
Since cjson-v1.0.0 (https://github.com/DaveGamble/cJSON/releases), cJSON.h is installed into cjson/cJSON.h and library has been renamed from cJSON to cjson Signed-off-by: Fabrice Fontaine <[email protected]> Signed-off-by: Thiago Macieira <[email protected]>
1 parent c2242c5 commit 8ba8e20

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ ifeq ($(open_memstream-pass),)
8282
endif
8383
endif
8484

85-
# json2cbor depends on an external library (cJSON)
85+
# json2cbor depends on an external library (cjson)
8686
ifneq ($(cjson-pass)$(system-cjson-pass),)
8787
JSON2CBOR_SOURCES = tools/json2cbor/json2cbor.c
8888
INSTALL_TARGETS += $(bindir)/json2cbor
8989
ifeq ($(system-cjson-pass),1)
90-
LDFLAGS_CJSON = -lcJSON
90+
LDFLAGS_CJSON = -lcjson
9191
else
9292
JSON2CBOR_SOURCES += src/cjson/cJSON.c
9393
json2cbor_CCFLAGS = -I$(SRCDIR)src/cjson

Makefile.configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ PROGRAM-gc_sections = int main() {}
1010
CCFLAGS-gc_sections = -Wl,--gc-sections
1111

1212
PROGRAM-cjson = \#include <stdlib.h>\n
13-
PROGRAM-cjson += \#include <cJSON.h>\n
13+
PROGRAM-cjson += \#include <cjson/cJSON.h>\n
1414
PROGRAM-cjson += int main() { return cJSON_False; }
1515
CCFLAGS-cjson = -I$(dir $(MAKEFILE))src/cjson
1616
PROGRAM-system-cjson = $(PROGRAM-cjson)
17-
CCFLAGS-system-cjson = -lcJSON
17+
CCFLAGS-system-cjson = -lcjson
1818

1919
sink:
2020
@echo >&2 Please run from the top-level Makefile.

tools/json2cbor/json2cbor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "cbor.h"
2828
#include "compilersupport_p.h"
2929

30-
#include <cJSON.h>
30+
#include <cjson/cJSON.h>
3131

3232
#include <errno.h>
3333
#include <math.h>

0 commit comments

Comments
 (0)