mingw: avoid redefining S_* constants

When compiling with MSys2's compiler, these constants are already defined. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jan 15, 2016 at 14:24 UTC 59de49f80d8f6067f19496750cc79632b2959ad9
1 file changed +4
compat/mingw.h
+4
@@ -26,14 +26,18 @@ typedef int pid_t;
26 #define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)
27 #define S_ISSOCK(x) 0
28
29 +#ifndef S_IRWXG
30 #define S_IRGRP 0
31 #define S_IWGRP 0
32 #define S_IXGRP 0
33 #define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
34 +#endif
35 +#ifndef S_IRWXO
36 #define S_IROTH 0
37 #define S_IWOTH 0
38 #define S_IXOTH 0
39 #define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
40 +#endif
41
42 #define S_ISUID 0004000
43 #define S_ISGID 0002000