Skip to content

Commit b8942fa

Browse files
committed
Avoid redefining S_* constants
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 79a4059 commit b8942fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/mingw.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ typedef int socklen_t;
1313
#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)
1414
#define S_ISSOCK(x) 0
1515

16+
#ifndef S_IRWXG
1617
#define S_IRGRP 0
1718
#define S_IWGRP 0
1819
#define S_IXGRP 0
1920
#define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
21+
#endif
22+
#ifndef S_IRWXO
2023
#define S_IROTH 0
2124
#define S_IWOTH 0
2225
#define S_IXOTH 0
2326
#define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
27+
#endif
2428

2529
#define S_ISUID 0004000
2630
#define S_ISGID 0002000

0 commit comments

Comments
 (0)