Explorar el Código

no unistd only on windows

Nicolas Winkler hace 6 años
padre
commit
2a5f83c25d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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                                \