aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-12-05 14:44:25 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-12-05 15:05:01 +0600
commit38afc8940736c0a3d54e81c887595139f70675df (patch)
treec6d15e95c46774f455486388c3a004c432f4c5c3 /src
parentc161bb287ce34c9e60f774a4cd5f1e8bc844b407 (diff)
downloadmpd-38afc8940736c0a3d54e81c887595139f70675df.tar.gz
mpd-38afc8940736c0a3d54e81c887595139f70675df.tar.xz
mpd-38afc8940736c0a3d54e81c887595139f70675df.zip
fs/FileSystem.hxx: don't define CheckAccess() with mode on Windows
Diffstat (limited to 'src')
-rw-r--r--src/fs/FileSystem.hxx10
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.
*/