From: Ramsay Jones Date: Sat, 4 Dec 2010 19:00:51 +0000 (+0000) Subject: msvc: Fix macro redefinition warnings X-Git-Tag: v1.7.4-rc0~32^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=93d85f57be00859f8adecd474da30a7279cd4ec2;p=git.git msvc: Fix macro redefinition warnings Commit 4091bfc (MinGW: Add missing file mode bit defines, 28-12-2009) causes the msvc build to issue many additional (currently 1008) macro redefinition warnings. The warnings relate to the S_IRUSR, S_IWUSR, S_IXUSR and S_IRWXU macros. In order to fix the warnings, we simply remove the offending macro definitions which, for both msvc and MinGW, are not required. Signed-off-by: Ramsay Jones Acked-by: Sebastian Schuberth Acked-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/compat/mingw.h b/compat/mingw.h index 99a746703..da316dc48 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -14,12 +14,6 @@ typedef int socklen_t; #define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK) #define S_ISSOCK(x) 0 -#ifndef _STAT_H_ -#define S_IRUSR 0 -#define S_IWUSR 0 -#define S_IXUSR 0 -#define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) -#endif #define S_IRGRP 0 #define S_IWGRP 0 #define S_IXGRP 0