summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-02-27 17:40:24 +0000
committerJim Meyering <jim@meyering.net>2000-02-27 17:40:24 +0000
commit8041fd530144d53b479fa50cadfb1bedf0352524 (patch)
tree3236c50b8ecda840caa74ecc122a2f70fa75dcb8
parent7a80c0cacc1d49d96c5f0eaf5de8c0b261c06339 (diff)
downloadcoreutils-8041fd530144d53b479fa50cadfb1bedf0352524.tar.xz
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.
-rw-r--r--lib/human.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/human.c b/lib/human.c
index 600614e01..9c2c16afd 100644
--- 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