Code

msvc: Fix macro redefinition warnings
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sat, 4 Dec 2010 19:00:51 +0000 (19:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Dec 2010 00:02:53 +0000 (16:02 -0800)
commit93d85f57be00859f8adecd474da30a7279cd4ec2
tree793ebf4b7b5c5cfc33f4210d0891c2ef3c3656bf
parent1a3b5a3e5cfc00ca36bdbc07b3ffebcdfc9dd989
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>
compat/mingw.h