path: root/usage.c
diff options
authorJunio C Hamano <>2005-12-05 19:54:29 (GMT)
committerJunio C Hamano <>2005-12-05 23:50:29 (GMT)
commit4050c0df8ec7043315e2192695de432875239775 (patch)
tree36ea762082320aae037a95157c6c7f0ffc383046 /usage.c
parentcd8c4589473d2a6669cf882ebcd708a2d81e9168 (diff)
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 <>
Diffstat (limited to 'usage.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/usage.c b/usage.c
index dfa87fe..1fa924c 100644
--- a/usage.c
+++ b/usage.c
@@ -3,7 +3,7 @@
* Copyright (C) Linus Torvalds, 2005
-#include "cache.h"
+#include "git-compat-util.h"
static void report(const char *prefix, const char *err, va_list params)