From b74ec1df8938668b67d54dab44d0a1f96e9de490 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 4 Aug 2016 21:07:59 -0400 Subject: DIRECTOR: Fix compilation in Visual Studio --- engines/director/lingo/lingo-lex.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/director') 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. -- cgit v1.2.3