diff options
author | Paul Gilbert | 2016-08-04 21:07:59 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-04 21:07:59 -0400 |
commit | b74ec1df8938668b67d54dab44d0a1f96e9de490 (patch) | |
tree | a3f6d232ce353f0c70f252b04a7c582869b4d491 /engines/director/lingo/lingo-lex.cpp | |
parent | 7a79eec7eaa183412bcec0b1d89739603f9411b5 (diff) | |
download | scummvm-rg350-b74ec1df8938668b67d54dab44d0a1f96e9de490.tar.gz scummvm-rg350-b74ec1df8938668b67d54dab44d0a1f96e9de490.tar.bz2 scummvm-rg350-b74ec1df8938668b67d54dab44d0a1f96e9de490.zip |
DIRECTOR: Fix compilation in Visual Studio
Diffstat (limited to 'engines/director/lingo/lingo-lex.cpp')
-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. |