system.h: Don't declare strsignal if the decl test hasn't been run yet.
authorAndreas Schwab <schwab@suse.de>
Mon, 20 Jan 2003 10:23:41 +0000 (10:23 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Mon, 20 Jan 2003 10:23:41 +0000 (10:23 +0000)
* system.h: Don't declare strsignal if the decl test hasn't been
run yet.

From-SVN: r61505

gcc/ChangeLog
gcc/system.h

index 5e795cee8fae99659791030fd922327526b443bc..095161fa174bbd58b3bfaa2cca6ee3d3c1ed7466 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-20  Andreas Schwab  <schwab@suse.de>
+
+       * system.h: Don't declare strsignal if the decl test hasn't been
+       run yet.
+
 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.c (notice_update_cc): Don't assume that
index 9454067ee933babd2c6cfe32b95efa68ca946e91..0e5b3c65894fca5dec5a72f326b44183c620c1c1 100644 (file)
@@ -1,6 +1,6 @@
 /* Get common system includes and various definitions and declarations based
    on autoconf macros.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -321,7 +321,8 @@ extern PTR realloc PARAMS ((PTR, size_t));
 
 /* If the system doesn't provide strsignal, we get it defined in
    libiberty but no declaration is supplied.  */
-#if !defined (HAVE_STRSIGNAL) || !HAVE_DECL_STRSIGNAL
+#if !defined (HAVE_STRSIGNAL) \
+    || (defined (HAVE_DECL_STRSIGNAL) && !HAVE_DECL_STRSIGNAL)
 # ifndef strsignal
 extern const char *strsignal PARAMS ((int));
 # endif