소스 검색

Undef true and false first, fixes #339

Thanks  @raiden00pl for reporting
Max Bruckner 6 년 전
부모
커밋
5a52eaddfd
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      cJSON.c

+ 7 - 0
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 {