From: Jim Meyering Date: Sun, 27 Feb 2000 17:41:20 +0000 (+0000) Subject: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' X-Git-Tag: FILEUTILS-4_0q~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aadde402068c6b1bdada7177f6b46cdf5648be5f;p=thirdparty%2Fcoreutils.git Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' now that autoconf always defines the HAVE_DECL_ symbols. Arrange for cpp to fail if the configure-time declaration check was not run. --- diff --git a/lib/same.c b/lib/same.c index 930ca0b2f7..cdf6452b23 100644 --- a/lib/same.c +++ b/lib/same.c @@ -50,6 +50,9 @@ extern int errno; #define STREQ(a, b) (strcmp ((a), (b)) == 0) #ifndef HAVE_DECL_FREE +'this configure-time declaration test was not run' +#endif +#if !HAVE_DECL_FREE void free (); #endif diff --git a/lib/strtoumax.c b/lib/strtoumax.c index 1642e97354..22b9a3d8dc 100644 --- a/lib/strtoumax.c +++ b/lib/strtoumax.c @@ -38,10 +38,16 @@ #endif #ifndef HAVE_DECL_STRTOUL +'this configure-time declaration test was not run' +#endif +#if !HAVE_DECL_STRTOUL unsigned long long strtoul PARAMS ((char const *, char **, int)); #endif #ifndef HAVE_DECL_STRTOULL +'this configure-time declaration test was not run' +#endif +#if !HAVE_DECL_STRTOULL unsigned long long strtoull PARAMS ((char const *, char **, int)); #endif