Skip to content

Commit 64a9c8b

Browse files
dschoGit for Windows Build Agent
authored andcommitted
git-compat-util: avoid redeclaring _DEFAULT_SOURCE
We are about to vendor in `mimalloc`'s source code which we will want to include `compat/posix.h` after defining that constant. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8960350 commit 64a9c8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compat/posix.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
#define _ALL_SOURCE 1
7171
#define _GNU_SOURCE 1
7272
#define _BSD_SOURCE 1
73+
#ifndef _DEFAULT_SOURCE
7374
#define _DEFAULT_SOURCE 1
75+
#endif
7476
#define _NETBSD_SOURCE 1
7577
#define _SGI_SOURCE 1
7678

0 commit comments

Comments
 (0)