mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-06 08:03:25 +08:00
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:
parent
aee6c49887
commit
aadde40206
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user