Add strchrnul()
[gitweb.git] / git-compat-util.h
index 7b29d1b905c618a50704a7b2c38041f71c942e71..e72654bc408e36512b392e3e5ed3026d79cc141b 100644 (file)
@@ -183,6 +183,11 @@ void *gitmemmem(const void *haystack, size_t haystacklen,
                 const void *needle, size_t needlelen);
 #endif
 
+#ifdef NO_STRCHRNUL
+#define strchrnul gitstrchrnul
+char *gitstrchrnul(const char *s, int c);
+#endif
+
 extern void release_pack_memory(size_t, int);
 
 static inline char* xstrdup(const char *str)