Add a compat/strtoumax.c for Solaris 8.
commitbc6b4f52fc79712db637ff90a472b82b32695e11
authorJason Riedy <ejr@EECS.Berkeley.EDU>
Tue, 20 Feb 2007 00:22:56 +0000 (19 16:22 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 20 Feb 2007 02:20:30 +0000 (19 18:20 -0800)
tree6a1f85627af40c0079f01e7099701efb349c81b2
parentf496454e0fd22d003e9c9b5c3742b12d526bc0a4
Add a compat/strtoumax.c for Solaris 8.

Solaris 8 was pre-c99, and they weren't willing to commit to
the strtoumax definition according to /usr/include/inttypes.h.

This adds NO_STRTOUMAX and NO_STRTOULL for ancient systems.
If NO_STRTOUMAX is defined, the routine in compat/strtoumax.c
will be used instead.  That routine passes its arguments to
strtoull unless NO_STRTOULL is defined.  If NO_STRTOULL, then
the routine uses strtoul (unsigned long).

Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
Acked-by: Shawn O Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile
compat/strtoumax.c [new file with mode: 0644]
git-compat-util.h