From e0caa53914f832b3ceda785aac119141acb3d7ac Mon Sep 17 00:00:00 2001 From: Bill Hoffman <bill.hoffman@kitware.com> Date: Mon, 12 Jan 2004 16:16:46 -0500 Subject: [PATCH] BUG: try to get access to work on borland --- SystemTools.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index 661d651c..dba0dc3d 100644 --- a/SystemTools.cxx +++ b/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 ) { -- GitLab