From ca6fddec80a77dff075f2c103326e383d0c17e9c Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 28 Jan 2005 17:46:47 -0500 Subject: COMP: Another borland problem --- Source/cmDependsJavaLexer.cxx | 4 +++- Source/cmDependsJavaLexer.in.l | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmDependsJavaLexer.cxx b/Source/cmDependsJavaLexer.cxx index 503fb28..5951418 100644 --- a/Source/cmDependsJavaLexer.cxx +++ b/Source/cmDependsJavaLexer.cxx @@ -704,7 +704,9 @@ Modify cmDependsJavaLexer.h: #if defined( _WIN32 ) && !defined( __CYGWIN__ ) /* Handle Windows properly */ # include -# define isatty _isatty +# if defined( _MSC_VER ) +# define isatty _isatty +# endif # define YY_NO_UNISTD_H 1 #endif diff --git a/Source/cmDependsJavaLexer.in.l b/Source/cmDependsJavaLexer.in.l index f77f7fd..4eab54e 100644 --- a/Source/cmDependsJavaLexer.in.l +++ b/Source/cmDependsJavaLexer.in.l @@ -67,7 +67,9 @@ Modify cmDependsJavaLexer.h: #if defined( _WIN32 ) && !defined( __CYGWIN__ ) /* Handle Windows properly */ # include -# define isatty _isatty +# if defined( _MSC_VER ) +# define isatty _isatty +# endif # define YY_NO_UNISTD_H 1 #endif -- cgit v0.12