X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrtoimax.c;h=4ce741cfdd3b948820f044d6817ef85c3e1e9982;hb=b3b353659ac863c94e9705047710a99fa58fe0b1;hp=3e12cc637a4a536f425b71c0cd23f6a901ac4e0d;hpb=68af56be3e061b97cf97150094bc50b0aa364cbb;p=gnulib.git diff --git a/lib/strtoimax.c b/lib/strtoimax.c index 3e12cc637..4ce741cfd 100644 --- a/lib/strtoimax.c +++ b/lib/strtoimax.c @@ -23,26 +23,16 @@ #if HAVE_INTTYPES_H # include -#else -# if HAVE_STDINT_H -# include -# endif +#elif HAVE_STDINT_H +# include #endif -#if HAVE_STDLIB_H -# include -#endif +#include /* Verify a requirement at compile-time (unlike assert, which is runtime). */ #define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; } #ifdef UNSIGNED -# ifndef HAVE_DECL_STRTOUL -"this configure-time declaration test was not run" -# endif -# if !HAVE_DECL_STRTOUL -unsigned long strtoul (char const *, char **, int); -# endif # ifndef HAVE_DECL_STRTOULL "this configure-time declaration test was not run" # endif @@ -52,12 +42,6 @@ unsigned long long strtoull (char const *, char **, int); #else -# ifndef HAVE_DECL_STRTOL -"this configure-time declaration test was not run" -# endif -# if !HAVE_DECL_STRTOL -long strtol (char const *, char **, int); -# endif # ifndef HAVE_DECL_STRTOLL "this configure-time declaration test was not run" # endif