git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] On some platforms, certain headers need to be included before regex.h

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 4, 2006, 23:01 UTC
Message-ID
<Pine.LNX.4.63.0604050059580.19712@wbgn013.biozentrum.uni-wuerzburg.de>

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>
---
 diffcore-pickaxe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
0dcea02390ab0a15e2dbb62b4b876046fe0b4e79
diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c
index d89f314..cfcce31 100644
--- a/diffcore-pickaxe.c
+++ b/diffcore-pickaxe.c
@@ -1,11 +1,11 @@
 /*
  * 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,
-- 
1.3.0.rc2.g7eaca-dirty
Message 1 of 1 in “On some platforms, certain headers need to be included before regex.h”
  1. On some platforms, certain headers need to be included before regex.hJohannes Schindelin, Apr 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.