Files
Dong Heng e5df03c277 feat(cjson): Add function to encode json number when "sprintf" not support float
Newlib use nano mode as default. When enable nano mode, cjson use internal function to encode for float data.
Otherwise using "sprintf" to encode float data.
2018-10-15 09:50:24 +08:00

11 lines
170 B
Makefile

#
# Component Makefile
#
COMPONENT_ADD_INCLUDEDIRS += cJSON
COMPONENT_SRCDIRS := cJSON
ifdef CONFIG_NEWLIB_LIBRARY_LEVEL_NORMAL
CFLAGS += -DCJSON_SPRINTF_FLOAT=1
endif