summaryrefslogtreecommitdiff
path: root/compat/strcasestr.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-05 11:54:29 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-05 15:50:29 -0800
commit4050c0df8ec7043315e2192695de432875239775 (patch)
tree36ea762082320aae037a95157c6c7f0ffc383046 /compat/strcasestr.c
parentcd8c4589473d2a6669cf882ebcd708a2d81e9168 (diff)
downloadgit-4050c0df8ec7043315e2192695de432875239775.tar.gz
Clean up compatibility definitions.
This attempts to clean up the way various compatibility functions are defined and used. - A new header file, git-compat-util.h, is introduced. This looks at various NO_XXX and does necessary function name replacements, equivalent of -Dstrcasestr=gitstrcasestr in the Makefile. - Those function name replacements are removed from the Makefile. - Common features such as usage(), die(), xmalloc() are moved from cache.h to git-compat-util.h; cache.h includes git-compat-util.h itself. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'compat/strcasestr.c')
-rw-r--r--compat/strcasestr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat/strcasestr.c b/compat/strcasestr.c
index b96414d36b..26896deca6 100644
--- a/compat/strcasestr.c
+++ b/compat/strcasestr.c
@@ -1,5 +1,4 @@
-#include <string.h>
-#include <ctype.h>
+#include "../git-compat-util.h"
char *gitstrcasestr(const char *haystack, const char *needle)
{