Undef true and false first, fixes #339

Thanks  @raiden00pl for reporting
This commit is contained in:
Max Bruckner 2019-04-13 01:44:23 +02:00
parent c69134d017
commit 5a52eaddfd
1 changed files with 7 additions and 0 deletions

View File

@ -58,7 +58,14 @@
#include "cJSON.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)
typedef struct {