BUG: try to get access to work on borland
This commit is contained in:
parent
e5bcc9244b
commit
a9beaa40e8
|
@ -631,7 +631,9 @@ bool SystemTools::FileExists(const char* filename)
|
||||||
{
|
{
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# define access _access
|
# define access _access
|
||||||
# define F_OK 0
|
#endif
|
||||||
|
#ifndef F_OK
|
||||||
|
#define F_OK 0
|
||||||
#endif
|
#endif
|
||||||
if ( access(filename, F_OK) != 0 )
|
if ( access(filename, F_OK) != 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue