Restored somehow lost AMD Family 11h support.
[libfirm] / ir / libcore / lc_config_lexer.c
index b01e328..200856b 100644 (file)
@@ -530,7 +530,13 @@ char *_lc_opt_text;
 #endif
 
 #include <stdio.h>
-#include <unistd.h>  /* flex generated code wants a declaration of isatty... */
+
+/* flex generated code wants a declaration of isatty... */
+#ifdef _WIN32
+#include <io.h>
+#else
+#include <unistd.h>
+#endif
 
 #include "lc_parser_t.h"
 #include "lc_config_parser.h"