summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-04-05 01:01:03 +0200
committerJunio C Hamano <junkio@cox.net>2006-04-04 17:14:06 -0700
commit46b8dec038be1125153e9fc816a1e1f0a9d2de77 (patch)
treef9fb33091edd12294fc420a0edfbe7f75dd5fac5
parentd01d8c6782850c18d62676dae3c72ad73be1e52e (diff)
downloadgit-46b8dec038be1125153e9fc816a1e1f0a9d2de77.tar.gz
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 <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--diffcore-pickaxe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c
index d89f314f6d..cfcce315ba 100644
--- a/diffcore-pickaxe.c
+++ b/diffcore-pickaxe.c
@@ -1,12 +1,12 @@
/*
* Copyright (C) 2005 Junio C Hamano
*/
-#include <regex.h>
-
#include "cache.h"
#include "diff.h"
#include "diffcore.h"
+#include <regex.h>
+
static unsigned int contains(struct diff_filespec *one,
const char *needle, unsigned long len,
regex_t *regexp)