summaryrefslogtreecommitdiff
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-12 10:22:20 +0100
committerMax Kellermann <max@musicpd.org>2017-12-12 10:22:20 +0100
commitdfaf08743cade4c10c464bfbbb15d8f96c6e5cd9 (patch)
tree09be190640403b134b8967e1daf0d72445b146ed /src/CommandLine.cxx
parentd9552d8a6d2fbc916e5a7bf6e75c2d3b4f29c38e (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/CommandLine.cxx')
-rw-r--r--src/CommandLine.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx
index 9429af528..0d0484686 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -67,7 +67,7 @@
#include <stdio.h>
#include <stdlib.h>
-#ifdef WIN32
+#ifdef _WIN32
#define CONFIG_FILE_LOCATION PATH_LITERAL("mpd\\mpd.conf")
#define APP_CONFIG_FILE_LOCATION PATH_LITERAL("conf\\mpd.conf")
#else
@@ -389,7 +389,7 @@ ParseCommandLine(int argc, char **argv, struct options *options)
ConfigLoader loader;
bool found =
-#ifdef WIN32
+#ifdef _WIN32
loader.TryFile(GetUserConfigDir(), CONFIG_FILE_LOCATION) ||
loader.TryFile(GetSystemConfigDir(), CONFIG_FILE_LOCATION) ||
loader.TryFile(GetAppBaseDir(), APP_CONFIG_FILE_LOCATION);