From 0a18ddf91cf5cef4809497139b0567f82c8ba7c4 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 20 Jan 2003 10:23:41 +0000 Subject: [PATCH] system.h: Don't declare strsignal if the decl test hasn't been run yet. * system.h: Don't declare strsignal if the decl test hasn't been run yet. From-SVN: r61505 --- gcc/ChangeLog | 5 +++++ gcc/system.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e795ce..095161f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-01-20 Andreas Schwab + + * system.h: Don't declare strsignal if the decl test hasn't been + run yet. + 2003-01-20 Kazu Hirata * config/h8300/h8300.c (notice_update_cc): Don't assume that diff --git a/gcc/system.h b/gcc/system.h index 9454067..0e5b3c6 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -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 -- 2.7.4