diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 14:44:25 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 15:05:01 +0600 |
commit | 38afc8940736c0a3d54e81c887595139f70675df (patch) | |
tree | c6d15e95c46774f455486388c3a004c432f4c5c3 /src/fs | |
parent | c161bb287ce34c9e60f774a4cd5f1e8bc844b407 (diff) |
fs/FileSystem.hxx: don't define CheckAccess() with mode on Windows
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/FileSystem.hxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/fs/FileSystem.hxx b/src/fs/FileSystem.hxx index 66fe77d31..e9751c73b 100644 --- a/src/fs/FileSystem.hxx +++ b/src/fs/FileSystem.hxx @@ -131,23 +131,17 @@ MakeFifo(Path path, mode_t mode) return mkfifo(path.c_str(), mode) == 0; } -#endif - /** * Wrapper for access() that uses #Path names. */ static inline bool CheckAccess(Path path, int mode) { -#ifdef WIN32 - (void)path; - (void)mode; - return true; -#else return access(path.c_str(), mode) == 0; -#endif } +#endif + /** * Checks is specified path exists and accessible. */ |