Skip to content

Commit 36342eb

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 f39ddfd commit 36342eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-compat-util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ struct strbuf;
191191
#define _ALL_SOURCE 1
192192
#define _GNU_SOURCE 1
193193
#define _BSD_SOURCE 1
194+
#ifndef _DEFAULT_SOURCE
194195
#define _DEFAULT_SOURCE 1
196+
#endif
195197
#define _NETBSD_SOURCE 1
196198
#define _SGI_SOURCE 1
197199

0 commit comments

Comments
 (0)