X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxstrtol.c;h=0b4a714bf55bf060d1fd6b08af2d182dd2e627e9;hb=439776fad7de1003a5d28407a5f4f918c2829a8b;hp=591493e50c78cc4b6bd07b48754df86f88e5012f;hpb=9b8ea95435bc2ccb0882039535ccd5fac84dc935;p=gnulib.git diff --git a/lib/xstrtol.c b/lib/xstrtol.c index 591493e50..0b4a714bf 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -2,12 +2,8 @@ #include #endif -#include "xstrtol.h" /* Get definition for __P before use. */ - #ifdef STDC_HEADERS #include -#else -__unsigned long int __strtol __P ((const char *, char **, int base)); #endif #ifdef HAVE_STRING_H @@ -28,17 +24,19 @@ extern int errno; #endif #if HAVE_LIMITS_H -#include +# include #endif #ifndef ULONG_MAX -#define ULONG_MAX ((unsigned long) ~(unsigned long) 0) +# define ULONG_MAX ((unsigned long) ~(unsigned long) 0) #endif #ifndef LONG_MAX -#define LONG_MAX ((long int) (ULONG_MAX >> 1)) +# define LONG_MAX ((long int) (ULONG_MAX >> 1)) #endif +#include "xstrtol.h" + #define BKM_SCALE(x, scale_factor, error_return) \ do \ { \