From cf2a96375f62316b98c2dddd57f812f7565584be Mon Sep 17 00:00:00 2001
From: Steven Bennetts <steve@lindenlab.com>
Date: Wed, 30 Apr 2008 22:45:41 +0000
Subject: Workaround for cygwin flex 2.5.35 bug. Reviewed by Phoenix

---
 indra/lscript/lscript_compile/indra.l | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/indra/lscript/lscript_compile/indra.l b/indra/lscript/lscript_compile/indra.l
index 8bb26abf4c..03c8321d1d 100644
--- a/indra/lscript/lscript_compile/indra.l
+++ b/indra/lscript/lscript_compile/indra.l
@@ -12,6 +12,7 @@ FS			(f|F)
 #include "linden_common.h"
 // Deal with the fact that lex/yacc generates unreachable code
 #ifdef LL_WINDOWS
+#pragma warning (disable : 4018) // warning C4018: signed/unsigned mismatch
 #pragma warning (disable : 4702) // warning C4702: unreachable code
 #endif	//	LL_WINDOWS
 #include "llmath.h"
@@ -44,7 +45,10 @@ void parse_string();
 
 #define YYLMAX 16384
 #define YY_NEVER_INTERACTIVE 1 /* stops flex from calling isatty() */
- 
+#ifdef LL_WINDOWS
+#define isatty(x) 0 /* hack for bug in cygwin flex 2.5.35 */
+#endif
+
 #ifdef ECHO
 #undef ECHO
 #endif
-- 
cgit v1.2.3