X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-compat-util.h;h=81883e7270daadafb4d827e894fa4645ff2e2b66;hb=2f76919517e98bb5e979d6c8c7bbc3478a066a21;hp=fe845ae639767dc8f56a9196a7faefb468737bba;hpb=a621859101370205d89a6fea7ba17839a43eb4ab;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index fe845ae63..81883e727 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -160,6 +160,10 @@ extern char *gitbasename(char *); #define PRIx32 "x" #endif +#ifndef PRIo32 +#define PRIo32 "o" +#endif + #ifndef PATH_SEP #define PATH_SEP ':' #endif @@ -312,6 +316,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);