From: Andreas Schwab Date: Mon, 20 Jan 2003 10:23:41 +0000 (+0000) Subject: system.h: Don't declare strsignal if the decl test hasn't been run yet. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a18ddf91cf5cef4809497139b0567f82c8ba7c4;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e795cee8fa..095161fa174 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 9454067ee93..0e5b3c65894 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