diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2013-09-24 23:31:58 -0700 |
---|---|---|
committer | Jonathan Nieder <jrnieder@gmail.com> | 2013-09-24 23:31:58 -0700 |
commit | d0c789084ca7796562b19a190f9df31038aaa6df (patch) | |
tree | 1bb4b55b7df8d520b7cfa30dcd07cadc009547f6 /compat/msvc.h | |
parent | 87bcf148d7a2dd585bbb6ed18dae83a42b45a67a (diff) | |
parent | 8453c1259a3b6fe89d67b6e783cc535b60f298c1 (diff) | |
download | git-d0c789084ca7796562b19a190f9df31038aaa6df.tar.gz git-d0c789084ca7796562b19a190f9df31038aaa6df.tar.xz |
Merge branch 'kb/msvc-compile'
* kb/msvc-compile:
Windows: do not redefine _WIN32_WINNT
MinGW: Fix stat definitions to work with MinGW runtime version 4.0
MSVC: fix stat definition hell
MSVC: fix compile errors due to macro redefinitions
MSVC: fix compile errors due to missing libintl.h
Diffstat (limited to 'compat/msvc.h')
-rw-r--r-- | compat/msvc.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/compat/msvc.h b/compat/msvc.h index 96b6d605d..580bb55bf 100644 --- a/compat/msvc.h +++ b/compat/msvc.h @@ -24,21 +24,6 @@ static __inline int strcasecmp (const char *s1, const char *s2) #undef ERROR -/* Use mingw_lstat() instead of lstat()/stat() and mingw_fstat() instead - * of fstat(). We add the declaration of these functions here, suppressing - * the corresponding declarations in mingw.h, so that we can use the - * appropriate structure type (and function) names from the msvc headers. - */ -#define stat _stat64 -int mingw_lstat(const char *file_name, struct stat *buf); -int mingw_fstat(int fd, struct stat *buf); -#define fstat mingw_fstat -#define lstat mingw_lstat -#define _stat64(x,y) mingw_lstat(x,y) -#define ALREADY_DECLARED_STAT_FUNCS - #include "compat/mingw.h" -#undef ALREADY_DECLARED_STAT_FUNCS - #endif |