From 627282a5f6da88f7ab94a6aa25c7a79c6461c69f Mon Sep 17 00:00:00 2001 From: windwiny Date: Wed, 7 May 2014 20:43:12 +0800 Subject: [PATCH] compatible 32 bit windows --- src/dir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dir.c b/src/dir.c index e80a5886e..70a6e01a8 100644 --- a/src/dir.c +++ b/src/dir.c @@ -12,7 +12,9 @@ #include #if defined(_WIN32) || defined(_WIN64) #define MAXPATHLEN 1024 + #if !defined(PATH_MAX) #define PATH_MAX MAX_PATH + #endif #define S_ISDIR(B) ((B)&_S_IFDIR) #include "Win/dirent.h" #include