summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsJavaLexer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDependsJavaLexer.cxx')
-rw-r--r--Source/cmDependsJavaLexer.cxx4
1 files changed, 3 insertions, 1 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 <io.h>
-# define isatty _isatty
+# if defined( _MSC_VER )
+# define isatty _isatty
+# endif
# define YY_NO_UNISTD_H 1
#endif