X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxstrtol.c;h=c4557a00640a70f9d420edc72ad099204ac283bf;hb=bbdcfead98c6d3536215c3f0f603e4f92a28d26b;hp=e7fb0681050bd659d53505bf95533b30d32ad755;hpb=4fde4952d5a3db51a122f96a31bfcd6879399fea;p=gnulib.git diff --git a/lib/xstrtol.c b/lib/xstrtol.c index e7fb06810..c4557a006 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -19,12 +19,6 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "xstrtol.h" - #ifndef __strtol # define __strtol strtol # define __strtol_t long int @@ -33,6 +27,10 @@ # define STRTOL_T_MAXIMUM LONG_MAX #endif +#include + +#include "xstrtol.h" + /* Some pre-ANSI implementations (e.g. SunOS 4) need stderr defined if assertion checking is enabled. */ #include @@ -46,19 +44,6 @@ #include "intprops.h" -#ifndef STRTOL_T_MINIMUM -# define STRTOL_T_MINIMUM TYPE_MINIMUM (__strtol_t) -# define STRTOL_T_MAXIMUM TYPE_MAXIMUM (__strtol_t) -#endif - -#if !HAVE_DECL_STRTOIMAX && !defined strtoimax -intmax_t strtoimax (); -#endif - -#if !HAVE_DECL_STRTOUMAX && !defined strtoumax -uintmax_t strtoumax (); -#endif - static strtol_error bkm_scale (__strtol_t *x, int scale_factor) {