summaryrefslogtreecommitdiff
path: root/src/fs/Limits.hxx
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/fs/Limits.hxx
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/fs/Limits.hxx')
-rw-r--r--src/fs/Limits.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/Limits.hxx b/src/fs/Limits.hxx
index c9ce51ed2..5a646c63f 100644
--- a/src/fs/Limits.hxx
+++ b/src/fs/Limits.hxx
@@ -25,7 +25,7 @@
#include <stddef.h>
#include <limits.h>
-#if defined(WIN32)
+#if defined(_WIN32)
static constexpr size_t MPD_PATH_MAX = 260;
#elif defined(MAXPATHLEN)
static constexpr size_t MPD_PATH_MAX = MAXPATHLEN;