Skip to content

Commit ed3d48d

Browse files
committed
git-compat-util: avoid redeclaring _DEFAULT_SOURCE
We are about to vendor in `mimalloc`'s source code which we will want to include `git-compat-util.h` after defining that constant. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 55508b3 commit ed3d48d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-compat-util.h

+2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ struct strbuf;
185185
#define _ALL_SOURCE 1
186186
#define _GNU_SOURCE 1
187187
#define _BSD_SOURCE 1
188+
#ifndef _DEFAULT_SOURCE
188189
#define _DEFAULT_SOURCE 1
190+
#endif
189191
#define _NETBSD_SOURCE 1
190192
#define _SGI_SOURCE 1
191193

0 commit comments

Comments
 (0)