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 <ramsay@ramsay1.demon.co.uk> Acked-by: Sebastian Schuberth <sschuberth@gmail.com> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramsay Jones committed
Dec 4, 2010 at 19:00 UTC
93d85f57be00859f8adecd474da30a7279cd4ec2
1 file changed
-6
compat/mingw.h
-6
@@ -14,12 +14,6 @@ typedef int socklen_t;
14
#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)
15
#define S_ISSOCK(x) 0
16
17
-#ifndef _STAT_H_
18
-#define S_IRUSR 0
19
-#define S_IWUSR 0
20
-#define S_IXUSR 0
21
-#define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
22
-#endif
17
#define S_IRGRP 0
18
#define S_IWGRP 0
19
#define S_IXGRP 0