X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-compat-util.h;h=1bfbdeb94f55d57b429b91aa8762618153c34f7f;hb=674d1727305211f7ade4ade70440220f74f55162;hp=ca0a597a282328bff9e0e29fd3653dbd656489fb;hpb=f21a47b27ceef8ff2f6f218d5b7266d5fd9e2e93;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index ca0a597a2..1bfbdeb94 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -172,6 +172,12 @@ extern uintmax_t gitstrtoumax(const char *, char **, int); extern const char *githstrerror(int herror); #endif +#ifdef NO_MEMMEM +#define memmem gitmemmem +void *gitmemmem(const void *haystack, size_t haystacklen, + const void *needle, size_t needlelen); +#endif + extern void release_pack_memory(size_t, int); static inline char* xstrdup(const char *str)