fs/FileSystem.hxx: don't define CheckAccess() with mode on Windows
This commit is contained in:
parent
c161bb287c
commit
38afc89407
@ -131,23 +131,17 @@ MakeFifo(Path path, mode_t mode)
|
|||||||
return mkfifo(path.c_str(), mode) == 0;
|
return mkfifo(path.c_str(), mode) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper for access() that uses #Path names.
|
* Wrapper for access() that uses #Path names.
|
||||||
*/
|
*/
|
||||||
static inline bool
|
static inline bool
|
||||||
CheckAccess(Path path, int mode)
|
CheckAccess(Path path, int mode)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
|
||||||
(void)path;
|
|
||||||
(void)mode;
|
|
||||||
return true;
|
|
||||||
#else
|
|
||||||
return access(path.c_str(), mode) == 0;
|
return access(path.c_str(), mode) == 0;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks is specified path exists and accessible.
|
* Checks is specified path exists and accessible.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user