diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/lingo/lingo-lex.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index 813510ae2a..e503a470e9 100644 --- a/engines/director/lingo/lingo-lex.cpp +++ b/engines/director/lingo/lingo-lex.cpp @@ -685,7 +685,7 @@ static void count() { g_lingo->_colnumber += strlen(yytext); } -#ifdef __PLAYSTATION2__ +#if defined(__PLAYSTATION2__) || defined(_MSC_VER) // Stub for missing function int isatty(int fileno) { return 0; } #endif @@ -704,6 +704,10 @@ static void countnl() { #define INITIAL 0 +#ifdef _MSC_VER +#define YY_NO_UNISTD_H +#endif + #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. |