Mercurial > hg > octave-nkf > gnulib-hg
changeset 2288:ae987539432e
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.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 27 Feb 2000 17:39:52 +0000 |
parents | 9b7ce618e1fb |
children | 73726d4b7088 |
files | lib/backupfile.c lib/human.c lib/same.c lib/strtoumax.c |
diffstat | 4 files changed, 17 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -1,5 +1,5 @@ /* backupfile.c -- make Emacs style backup file names - Copyright (C) 1990-1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1990-1997, 1998, 1999, 2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,6 +65,9 @@ #endif #ifndef HAVE_DECL_GETENV +'this configure-time declaration test was not run' +#endif +#if !HAVE_DECL_GETENV char *getenv (); #endif
--- a/lib/human.c +++ b/lib/human.c @@ -1,5 +1,5 @@ /* human.c -- print human readable file size - Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,6 +44,9 @@ #endif #ifndef HAVE_DECL_GETENV +'this configure-time declaration test was not run' +#endif +#if !HAVE_DECL_GETENV char *getenv (); #endif
--- a/lib/same.c +++ b/lib/same.c @@ -50,6 +50,9 @@ #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
--- 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