Commit 38afc894 authored by Denis Krjuchkov's avatar Denis Krjuchkov

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

parent c161bb28
...@@ -131,23 +131,17 @@ MakeFifo(Path path, mode_t mode) ...@@ -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.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment