mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Merge pull request #347 from raiden00pl/master
Undef true and false first also for cJSON_Utils.c
This commit is contained in:
commit
62bc2e3432
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user