OSDN Git Service

* system.h (strsignal): Don't check HAVE_STRSIGNAL when
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Dec 1999 15:39:39 +0000 (15:39 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Dec 1999 15:39:39 +0000 (15:39 +0000)
        determining whether to provide a prototype.  Remove the
        sys_siglist clause in the conditional.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31100 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/system.h

index 03fec70..35ee30d 100644 (file)
@@ -1,3 +1,9 @@
+1999-12-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * system.h (strsignal): Don't check HAVE_STRSIGNAL when
+       determining whether to provide a prototype.  Remove the
+       sys_siglist clause in the conditional.
+
 1999-12-23  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
 
        * fold-const.c (operand_equal_p): Use memcmp to compare string
index 0fa561a..d9ae9d3 100644 (file)
@@ -397,19 +397,13 @@ extern int sys_nerr;
 extern char *sys_errlist[];
 #endif /* HAVE_STRERROR */
 
-#ifdef HAVE_STRSIGNAL
-# ifdef NEED_DECLARATION_STRSIGNAL
-#  ifndef strsignal
-extern char * strsignal ();
-#  endif
-# endif
-#else /* ! HAVE_STRSIGNAL */
-# ifndef SYS_SIGLIST_DECLARED
-#  ifndef NO_SYS_SIGLIST
-extern char * sys_siglist[];
-#  endif
+/* If the system doesn't provide strsignal, we get it defined in
+   libiberty but no declaration is supplied. */
+#ifdef NEED_DECLARATION_STRSIGNAL
+# ifndef strsignal
+extern const char *strsignal PARAMS ((int));
 # endif
-#endif /* HAVE_STRSIGNAL */
+#endif
 
 #ifdef HAVE_GETRLIMIT
 # ifdef NEED_DECLARATION_GETRLIMIT