Browse Source

no unistd only on windows

Nicolas Winkler 6 năm trước cách đây
mục cha
commit
2a5f83c25d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/ast/lexer.l

+ 2 - 0
src/ast/lexer.l

@@ -41,7 +41,9 @@
 
 extern "C" int qlow_parser_wrap(yyscan_t s);
 
+#ifdef _WIN32
 #define YY_NO_UNISTD_H
+#endif
 
 // TODO rewrite
 #define YY_USER_ACTION                                \