about summary refs log blame commit diff
path: root/compat/strtoumax.c
blob: 5541353a77a22d48ccebd20ede2f510ae20d1492 (plain) (tree)
1
2
3
4
5
6
7
8
9
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
}