1
0
mirror of https://github.com/DaveGamble/cJSON synced 2025-03-09 22:17:34 +00:00

Undef true and false first also for cJSON_Utils.c

This commit is contained in:
raiden00pl 2019-04-28 10:33:44 +02:00
parent 0b5a7abf48
commit 359567fdde

View File

@ -50,7 +50,14 @@
#include "cJSON_Utils.h"
/* define our own boolean type */
#ifdef true
#undef true
#endif
#define true ((cJSON_bool)1)
#ifdef false
#undef false
#endif
#define false ((cJSON_bool)0)
static unsigned char* cJSONUtils_strdup(const unsigned char* const string)