Skip to content

Commit 72f78bd

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 d55d5e5 commit 72f78bd

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
@@ -201,7 +201,9 @@ DISABLE_WARNING(-Wsign-compare)
201201
#define _ALL_SOURCE 1
202202
#define _GNU_SOURCE 1
203203
#define _BSD_SOURCE 1
204+
#ifndef _DEFAULT_SOURCE
204205
#define _DEFAULT_SOURCE 1
206+
#endif
205207
#define _NETBSD_SOURCE 1
206208
#define _SGI_SOURCE 1
207209

0 commit comments

Comments
 (0)