about summary refs log tree commit diff
path: root/third_party/git/compat/strtoimax.c
#include "../git-compat-util.h"

intmax_t gitstrtoimax (const char *nptr, char **endptr, int base)
{
#if defined(NO_STRTOULL)
	return strtol(nptr, endptr, base);
#else
	return strtoll(nptr, endptr, base);
#endif
}