From 732eb0a8d9b5d3a217421ec61e2b2335fc5a1e36 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 10 Jun 2011 13:54:25 +0200 Subject: [PATCH] Add some missing MSVC compatibility defines --- src/msvc-compat.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/msvc-compat.h b/src/msvc-compat.h index 6f38e482d..2343ea849 100644 --- a/src/msvc-compat.h +++ b/src/msvc-compat.h @@ -12,14 +12,17 @@ # define stat _stat64 # define fstat _fstat64 -#define _S_IFLNK 0120000 - /* stat: file mode type testing macros */ +# define _S_IFLNK 0120000 +# define S_IFLNK _S_IFLNK + # define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR) # define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG) # define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO) # define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK) +# define MAXPATHLEN MAX_PATH + /* case-insensitive string comparison */ # define strcasecmp _stricmp # define strncasecmp _strnicmp