From: Paul Eggert Date: Fri, 28 Sep 2001 06:54:20 +0000 (+0000) Subject: (strtol): Do not declare if HAVE_DECL_STRTOL. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=bab605d5bd4c38998ec9629465bf8cfdfcc45cdf;p=chaz%2Ftar (strtol): Do not declare if HAVE_DECL_STRTOL. (strtoul): Do not declare if HAVE_DECL_STRTOUL. (strtoimax, strtoumax): Do not declare if already defined as a macro. --- diff --git a/lib/xstrtol.c b/lib/xstrtol.c index d7ca6cf..88071cd 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -78,19 +78,19 @@ extern int errno; #include "xstrtol.h" -#ifndef strtol +#if !HAVE_DECL_STRTOL && !defined strtol long int strtol (); #endif -#ifndef strtoul +#if !HAVE_DECL_STRTOUL && !defined strtoul unsigned long int strtoul (); #endif -#if !HAVE_DECL_STRTOIMAX +#if !HAVE_DECL_STRTOIMAX && !defined strtoimax intmax_t strtoimax (); #endif -#if !HAVE_DECL_STRTOUMAX +#if !HAVE_DECL_STRTOUMAX && !defined strtoumax uintmax_t strtoumax (); #endif