treap: make treap_insert return inserted node
[gitweb.git] / git-compat-util.h
index 02a73eeb667e798fca29de25fed6b0b2900f6912..28d6b008c16e1311a5bab45a96c2f3dd72f25f85 100644 (file)
@@ -312,6 +312,11 @@ extern size_t gitstrlcpy(char *, const char *, size_t);
 extern uintmax_t gitstrtoumax(const char *, char **, int);
 #endif
 
+#ifdef NO_STRTOK_R
+#define strtok_r gitstrtok_r
+extern char *gitstrtok_r(char *s, const char *delim, char **save_ptr);
+#endif
+
 #ifdef NO_HSTRERROR
 #define hstrerror githstrerror
 extern const char *githstrerror(int herror);