]> git.ipfire.org Git - thirdparty/git.git/blame - compat/strtoumax.c
Merge branch 'master' of github.com:vnwildman/git
[thirdparty/git.git] / compat / strtoumax.c
CommitLineData
bc6b4f52
JR
1#include "../git-compat-util.h"
2
3uintmax_t gitstrtoumax (const char *nptr, char **endptr, int base)
4{
5#if defined(NO_STRTOULL)
6 return strtoul(nptr, endptr, base);
7#else
8 return strtoull(nptr, endptr, base);
9#endif
10}