Skip to content

Commit

Permalink
On some platforms, certain headers need to be included before regex.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Apr 5, 2006
1 parent d01d8c6 commit 46b8dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diffcore-pickaxe.c
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 46b8dec

Please sign in to comment.