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.
This commit is contained in:
Jim Meyering 2000-02-27 17:41:20 +00:00
parent aee6c49887
commit aadde40206
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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