Skip to content

Commit

Permalink
Undef true and false first also for cJSON_Utils.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raiden00pl committed Apr 28, 2019
1 parent 0b5a7ab commit 359567f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cJSON_Utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 359567f

Please sign in to comment.