From b73881a388c85a86ad75a4be68bc31007c79d731 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 30 Apr 2017 14:19:01 +0200 Subject: [PATCH] cJSON_Utils: Add true/false --- cJSON_Utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cJSON_Utils.c b/cJSON_Utils.c index 5046328..ad2805c 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -30,6 +30,10 @@ #include "cJSON_Utils.h" +/* define our own boolean type */ +#define true ((cJSON_bool)1) +#define false ((cJSON_bool)0) + static unsigned char* cJSONUtils_strdup(const unsigned char* const string) { size_t length = 0;