summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-04-30 22:45:41 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-04-30 22:45:41 +0000
commitcf2a96375f62316b98c2dddd57f812f7565584be (patch)
tree0066913359e41e17d617b4b8da36233905d9e1b6 /indra
parent90377a270da834c94f2d79595c3dedbd42f99c98 (diff)
Workaround for cygwin flex 2.5.35 bug.
Reviewed by Phoenix
Diffstat (limited to 'indra')
-rw-r--r--indra/lscript/lscript_compile/indra.l6
1 files changed, 5 insertions, 1 deletions
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