diff options
Diffstat (limited to 'third_party/git/compat/strtoumax.c')
-rw-r--r-- | third_party/git/compat/strtoumax.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/git/compat/strtoumax.c b/third_party/git/compat/strtoumax.c new file mode 100644 index 000000000000..5541353a77a2 --- /dev/null +++ b/third_party/git/compat/strtoumax.c @@ -0,0 +1,10 @@ +#include "../git-compat-util.h" + +uintmax_t gitstrtoumax (const char *nptr, char **endptr, int base) +{ +#if defined(NO_STRTOULL) + return strtoul(nptr, endptr, base); +#else + return strtoull(nptr, endptr, base); +#endif +} |