在__macro.h文件中添加可变参数宏的库: stdarg.h
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <stdarg.h>
#define bool int
#define true 1
@@ -47,7 +47,7 @@ fprintf(file, message, __VA_ARGS__); \
#define doubleLog(...) PASS
#endif
-#ifdef unix
+#ifdef __unix__
#define GRAMMAR_LOG "/grammar.log"
#define PASERS_LOG "/pasers.log"
#define LEXICAL_LOG "/lexical.log"