diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-12 10:22:20 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-12 10:22:20 +0100 |
commit | dfaf08743cade4c10c464bfbbb15d8f96c6e5cd9 (patch) | |
tree | 09be190640403b134b8967e1daf0d72445b146ed /src/db/plugins/simple | |
parent | d9552d8a6d2fbc916e5a7bf6e75c2d3b4f29c38e (diff) |
*: check defined(_WIN32) instead of defined(WIN32)
Only _WIN32 is defined by the compiler, and WIN32 is not standardized
and may be missing.
Closes #169
Diffstat (limited to 'src/db/plugins/simple')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index a0b4c3aa0..9f06105f5 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -115,7 +115,7 @@ SimpleDatabase::Check() const path_utf8 + "\" because the " "parent path is not a directory"); -#ifndef WIN32 +#ifndef _WIN32 /* Check if we can write to the directory */ if (!CheckAccess(dirPath, X_OK | W_OK)) { const int e = errno; @@ -134,7 +134,7 @@ SimpleDatabase::Check() const if (!fi.IsRegular()) throw std::runtime_error("db file \"" + path_utf8 + "\" is not a regular file"); -#ifndef WIN32 +#ifndef _WIN32 /* And check that we can write to it */ if (!CheckAccess(path, R_OK | W_OK)) throw FormatErrno("Can't open db file \"%s\" for reading/writing", |