X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fxstrtol.c;h=b1fdd4938d55f16b2bfcda28d8eab177d4373b49;hb=f16415c07025fdec551dfc1dc7275c2a88819d44;hp=97ebd9078bd19e1250be74213ceba4483b73e487;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/xstrtol.c b/lib/xstrtol.c index 97ebd9078..b1fdd4938 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -43,6 +43,19 @@ #include "intprops.h" +/* xstrtoll.c and xstrtoull.c, which include this file, require that + ULLONG_MAX, LLONG_MAX, LLONG_MIN are defined, but does not + define them on all platforms. */ +#ifndef ULLONG_MAX +# define ULLONG_MAX TYPE_MAXIMUM (unsigned long long) +#endif +#ifndef LLONG_MAX +# define LLONG_MAX TYPE_MAXIMUM (long long int) +#endif +#ifndef LLONG_MIN +# define LLONG_MIN TYPE_MINIMUM (long long int) +#endif + static strtol_error bkm_scale (__strtol_t *x, int scale_factor) {