Code

git-bisect: use update-ref to mark good/bad commits
[git.git] / git-compat-util.h
index 92d79673f8eddeb48b15dbbc3bff85fa39542b77..ede9408bbd14880b3534110586562c2e6df8b07b 100644 (file)
@@ -183,7 +183,13 @@ void *gitmemmem(const void *haystack, size_t haystacklen,
                 const void *needle, size_t needlelen);
 #endif
 
-#if !defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 1)
+#ifdef __GLIBC_PREREQ
+#if __GLIBC_PREREQ(2, 1)
+#define HAVE_STRCHRNUL
+#endif
+#endif
+
+#ifndef HAVE_STRCHRNUL
 #define strchrnul gitstrchrnul
 static inline char *gitstrchrnul(const char *s, int c)
 {