summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1999-06-24 15:48:29 -0600
committerJeff Law <law@gcc.gnu.org>1999-06-24 15:48:29 -0600
commitd3d5cc971dea7c956c4008a9ec8660eec497cdc4 (patch)
tree29a32af3d3507f2c2db021df26d98b242e16a577
parent8607048d6929daa0aa88a3603ec3929ae104f8d9 (diff)
downloadgcc-d3d5cc971dea7c956c4008a9ec8660eec497cdc4.tar.gz
system.h (strstr): New external function declaration.
� * system.h (strstr): New external function declaration. * acconfig.h (NEED_DECLARATION_STRSTR): New define slot. * configure.in (GCC_NEED_DECLARATIONS): Check for strstr. * config.in, configure: Rebuilt. From-SVN: r27746
-rw-r--r--gcc/acconfig.h3
-rw-r--r--gcc/system.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/acconfig.h b/gcc/acconfig.h
index 68bee4f7cbd..d702b0e0222 100644
--- a/gcc/acconfig.h
+++ b/gcc/acconfig.h
@@ -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
diff --git a/gcc/system.h b/gcc/system.h
index 22b48ab723c..5d1adcd9ad6 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -333,6 +333,10 @@ extern char *getwd ();
extern char *sbrk ();
#endif
+#ifdef NEED_DECLARATION_STRSTR
+extern char *strstr ();
+#endif
+
#ifdef HAVE_STRERROR
# ifdef NEED_DECLARATION_STRERROR
# ifndef strerror