author | Nick Alcock <nix@esperi.org.uk> | |
Wed, 2 Nov 2011 15:46:22 +0000 (15:46 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 2 Nov 2011 20:06:30 +0000 (13:06 -0700) | ||
commit | e3eed7f8d238e895922851315447f5df9c475f11 | |
tree | 23a236f94d6d13c52fc022530702db0696463d2f | tree | snapshot |
parent | f696543dad6c7ba27b0c4fab167a5687263a9ba0 | commit | diff |
Add strtoimax() compatibility function.
Since systems that omit strtoumax() will likely omit strtomax() too, and
likewise for strtoull() and strtoll(), we arrange for the make variables
NO_STRTOUMAX and NO_STRTOULL to cover both the signed and unsigned
functions, and define compatibility implementations for them.
Signed-off-by: Nick Alcock <nix@esperi.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Since systems that omit strtoumax() will likely omit strtomax() too, and
likewise for strtoull() and strtoll(), we arrange for the make variables
NO_STRTOUMAX and NO_STRTOULL to cover both the signed and unsigned
functions, and define compatibility implementations for them.
Signed-off-by: Nick Alcock <nix@esperi.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
compat/strtoimax.c | [new file with mode: 0644] | blob |