mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Add some missing MSVC compatibility defines
This commit is contained in:
parent
e3f56a2b57
commit
732eb0a8d9
@ -12,14 +12,17 @@
|
|||||||
# define stat _stat64
|
# define stat _stat64
|
||||||
# define fstat _fstat64
|
# define fstat _fstat64
|
||||||
|
|
||||||
#define _S_IFLNK 0120000
|
|
||||||
|
|
||||||
/* stat: file mode type testing macros */
|
/* 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_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
|
||||||
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
||||||
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
|
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
|
||||||
# define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK)
|
# define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK)
|
||||||
|
|
||||||
|
# define MAXPATHLEN MAX_PATH
|
||||||
|
|
||||||
/* case-insensitive string comparison */
|
/* case-insensitive string comparison */
|
||||||
# define strcasecmp _stricmp
|
# define strcasecmp _stricmp
|
||||||
# define strncasecmp _strnicmp
|
# define strncasecmp _strnicmp
|
||||||
|
Loading…
Reference in New Issue
Block a user