From 38afc8940736c0a3d54e81c887595139f70675df Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Thu, 5 Dec 2013 14:44:25 +0600 Subject: fs/FileSystem.hxx: don't define CheckAccess() with mode on Windows --- src/fs/FileSystem.hxx | 10 ++-------- 1 file 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. */ -- cgit v1.2.3