未验证 提交 62bc2e34 编写于 作者: M Max Bruckner 提交者: GitHub

Merge pull request #347 from raiden00pl/master

Undef true and false first also for cJSON_Utils.c
...@@ -50,7 +50,14 @@ ...@@ -50,7 +50,14 @@
#include "cJSON_Utils.h" #include "cJSON_Utils.h"
/* define our own boolean type */ /* define our own boolean type */
#ifdef true
#undef true
#endif
#define true ((cJSON_bool)1) #define true ((cJSON_bool)1)
#ifdef false
#undef false
#endif
#define false ((cJSON_bool)0) #define false ((cJSON_bool)0)
static unsigned char* cJSONUtils_strdup(const unsigned char* const string) static unsigned char* cJSONUtils_strdup(const unsigned char* const string)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册