소스 검색

Merge pull request #347 from raiden00pl/master

Undef true and false first also for cJSON_Utils.c
Max Bruckner 6 년 전
부모
커밋
62bc2e3432
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      cJSON_Utils.c

+ 7 - 0
cJSON_Utils.c

@@ -50,7 +50,14 @@
 #include "cJSON_Utils.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)
 
 static unsigned char* cJSONUtils_strdup(const unsigned char* const string)