From dfaf08743cade4c10c464bfbbb15d8f96c6e5cd9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Dec 2017 10:22:20 +0100 Subject: *: 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 --- src/fs/Limits.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fs/Limits.hxx') 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 #include -#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; -- cgit v1.2.3