]> git.proxmox.com Git - libgit2.git/commitdiff
Add some missing MSVC compatibility defines
authorSebastian Schuberth <sschuberth@gmail.com>
Fri, 10 Jun 2011 11:54:25 +0000 (13:54 +0200)
committerSebastian Schuberth <sschuberth@gmail.com>
Fri, 10 Jun 2011 11:54:25 +0000 (13:54 +0200)
src/msvc-compat.h

index 6f38e482dea273fa06a92210ed060d48c0ae1260..2343ea84934b344c90382096b13630b71b4ae4db 100644 (file)
 # 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