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 #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