Browse Source

fix: 添加stdarg.h库

在__macro.h文件中添加可变参数宏的库: stdarg.h
SongZihuan 4 years ago
parent
commit
dd35d3b174
2 changed files with 2 additions and 1 deletions
  1. 1 0
      include/__macro.h
  2. 1 1
      include/log.h

+ 1 - 0
include/__macro.h

@@ -4,6 +4,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <stdarg.h>
 
 #define bool int
 #define true 1

+ 1 - 1
include/log.h

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