cJSON icon indicating copy to clipboard operation
cJSON copied to clipboard

Added stdint.h include in cJSON.c as required by arm-none-eabi-gcc 11.3.1

Open jdotw opened this issue 3 years ago • 1 comments

Attempting to build cJSON.c with arm-none-eabi-gcc 11.3.1 fails because int16_t etc is defined in stdint.h but there is no #include <stdint.h>.

Fix: Added #include <stdint.h> to cJSON.c

jdotw avatar Sep 25 '22 00:09 jdotw

(I'm not a cJSON dev)

cJSON.c doesn't use [u]int* datatypes, so I don't see why this would be necessary. cJSON is explicitly C89, and those types aren't available there.

ralight avatar Apr 02 '23 10:04 ralight