Browse Source

COMP: Another borland problem

Andy Cedilnik 21 years ago
parent
commit
ca6fddec80
2 changed files with 6 additions and 2 deletions
  1. 3 1
      Source/cmDependsJavaLexer.cxx
  2. 3 1
      Source/cmDependsJavaLexer.in.l

+ 3 - 1
Source/cmDependsJavaLexer.cxx

@@ -704,7 +704,9 @@ Modify cmDependsJavaLexer.h:
 #if defined( _WIN32 ) && !defined( __CYGWIN__ )
 /* Handle Windows properly */
 #  include <io.h>
-#  define isatty _isatty
+#  if defined( _MSC_VER )
+#    define isatty _isatty
+#  endif
 #  define YY_NO_UNISTD_H 1
 #endif
 

+ 3 - 1
Source/cmDependsJavaLexer.in.l

@@ -67,7 +67,9 @@ Modify cmDependsJavaLexer.h:
 #if defined( _WIN32 ) && !defined( __CYGWIN__ )
 /* Handle Windows properly */
 #  include <io.h>
-#  define isatty _isatty
+#  if defined( _MSC_VER )
+#    define isatty _isatty
+#  endif
 #  define YY_NO_UNISTD_H 1
 #endif