This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95 NEED_DECLARATION_STRSTR
- To: egcs-patches at egcs dot cygnus dot com (egcs-patches at egcs dot cygnus dot com)
- Subject: gcc-2.95 NEED_DECLARATION_STRSTR
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Wed, 23 Jun 1999 20:08:36 +0200 (CEST)
Seems like this one got lost :
Sun Jun 6 02:34:57 1999 Philippe De Muyter <phdm@macqel.be>
* system.h (strstr): New external function declaration.
* acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
* configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
--- ./gcc/system.h Sun Jun 6 02:33:53 1999
+++ ./gcc/system.h Sun Jun 6 01:56:20 1999
@@ -330,6 +330,10 @@
extern char *sbrk ();
#endif
+#ifdef NEED_DECLARATION_STRSTR
+extern char *strstr ();
+#endif
+
#ifdef HAVE_STRERROR
# ifdef NEED_DECLARATION_STRERROR
# ifndef strerror
--- ./gcc/acconfig.h Sun Jun 6 02:33:55 1999
+++ ./gcc/acconfig.h Sun Jun 6 01:57:39 1999
@@ -93,6 +93,9 @@
/* Whether strsignal must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_STRSIGNAL
+/* Whether strstr must be declared even if <string.h> is included. */
+#undef NEED_DECLARATION_STRSTR
+
/* Whether getcwd must be declared even if <unistd.h> is included. */
#undef NEED_DECLARATION_GETCWD
--- ./gcc/configure.in Sun Jun 6 02:33:56 1999
+++ ./gcc/configure.in Sun Jun 6 02:04:58 1999
@@ -406,7 +406,7 @@ AC_MSG_CHECKING(whether cpp understands
GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
index rindex getenv atol sbrk abort atof strerror getcwd getwd \
- strsignal putc_unlocked fputs_unlocked)
+ strsignal putc_unlocked fputs_unlocked strstr)
GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
#include <sys/types.h>