From 5a52eaddfd3a36f5e68e73549eb87344812e826b Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sat, 13 Apr 2019 01:44:23 +0200 Subject: [PATCH] Undef true and false first, fixes #339 Thanks @raiden00pl for reporting --- cJSON.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cJSON.c b/cJSON.c index 74df6ec..bf38f4c 100644 --- a/cJSON.c +++ b/cJSON.c @@ -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 {