Skip to content

Commit 46b8dec

Browse files
dschoJunio C Hamano
authored and
Junio C Hamano
committed
On some platforms, certain headers need to be included before regex.h
Happily, these are already included in cache.h, which is included anyway... so: change the order of includes. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d01d8c6 commit 46b8dec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diffcore-pickaxe.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright (C) 2005 Junio C Hamano
33
*/
4-
#include <regex.h>
5-
64
#include "cache.h"
75
#include "diff.h"
86
#include "diffcore.h"
97

8+
#include <regex.h>
9+
1010
static unsigned int contains(struct diff_filespec *one,
1111
const char *needle, unsigned long len,
1212
regex_t *regexp)

0 commit comments

Comments
 (0)