summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index bb138d1..d525be3 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -631,7 +631,9 @@ bool SystemTools::FileExists(const char* filename)
{
#ifdef _MSC_VER
# define access _access
-# define F_OK 0
+#endif
+#ifndef F_OK
+#define F_OK 0
#endif
if ( access(filename, F_OK) != 0 )
{