Merge branch 'pb/regex' into next
authorJunio C Hamano <junkio@cox.net>
Wed, 5 Apr 2006 00:15:02 +0000 (17:15 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 5 Apr 2006 00:15:02 +0000 (17:15 -0700)
* pb/regex:
  On some platforms, certain headers need to be included before regex.h

diffcore-pickaxe.c

index d89f314..cfcce31 100644 (file)
@@ -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)