Skip to content

Commit

Permalink
Undef true and false first, fixes #339
Browse files Browse the repository at this point in the history
Thanks  @raiden00pl for reporting
  • Loading branch information
FSMaxB committed Apr 12, 2019
1 parent c69134d commit 5a52ead
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5a52ead

Please # to comment.