fs/FileSystem.hxx: don't define CheckAccess() with mode on Windows

This commit is contained in:
Denis Krjuchkov 2013-12-05 14:44:25 +06:00
parent c161bb287c
commit 38afc89407

View File

@ -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.
*/ */