cJSON_Utils: Add true/false

This commit is contained in:
Max Bruckner 2017-04-30 14:19:01 +02:00
parent bb2f868126
commit b73881a388
1 changed files with 4 additions and 0 deletions

View File

@ -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;