mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-24 10:38:01 +08:00

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.
11 lines
170 B
Makefile
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
|