aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-01-24 00:53:53 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-01-26 11:18:12 +0600
commite995cd928c40ecea22fd4d1e3716bb9a656a5430 (patch)
tree4cb88a489d517614eb4d72b0e6e042dc284aa501 /src/fs
parent292d7c3fdfa1732a3b4ff7b9db3075a063311819 (diff)
downloadmpd-e995cd928c40ecea22fd4d1e3716bb9a656a5430.tar.gz
mpd-e995cd928c40ecea22fd4d1e3716bb9a656a5430.tar.xz
mpd-e995cd928c40ecea22fd4d1e3716bb9a656a5430.zip
Path: define MPD_PATH_MAX to 260 on Windows
Diffstat (limited to '')
-rw-r--r--src/fs/Path.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx
index 926b6eafb..0b51983f6 100644
--- a/src/fs/Path.hxx
+++ b/src/fs/Path.hxx
@@ -33,7 +33,9 @@
#include <limits.h>
#if !defined(MPD_PATH_MAX)
-# if defined(MAXPATHLEN)
+# if defined(WIN32)
+# define MPD_PATH_MAX 260
+# elif defined(MAXPATHLEN)
# define MPD_PATH_MAX MAXPATHLEN
# elif defined(PATH_MAX)
# define MPD_PATH_MAX PATH_MAX