changeset 2289:73726d4b7088

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:40:53 +0000
parents ae987539432e
children be57b6203a23
files lib/hash.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -1,5 +1,5 @@
 /* hash - hashing table processing.
-   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    Written by Jim Meyering, 1992.
 
    This program is free software; you can redistribute it and/or modify
@@ -35,9 +35,16 @@
 #include <stdio.h>
 #include <assert.h>
 
+#ifndef HAVE_DECL_FREE
+'this configure-time declaration test was not run'
+#endif
 #if !HAVE_DECL_FREE
 void free ();
 #endif
+
+#ifndef HAVE_DECL_MALLOC
+'this configure-time declaration test was not run'
+#endif
 #if !HAVE_DECL_MALLOC
 char *malloc ();
 #endif