summaryrefslogtreecommitdiffstats
path: root/libiberty/strstr.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 20:36:33 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 20:36:33 +0000
commitca3ccdf659614279fe6748b24210dc3310b716bd (patch)
tree3a3d8d2a1200271f88e99f0c99b9d1269be9d399 /libiberty/strstr.c
parentbb1db72fc413e003f2940ff69bd0257f9cd7a18f (diff)
downloadppe42-gcc-ca3ccdf659614279fe6748b24210dc3310b716bd.tar.gz
ppe42-gcc-ca3ccdf659614279fe6748b24210dc3310b716bd.zip
* argv.c: Fix comments.
* calloc.c: Don't unnecessarily include "libiberty.h". (bzero): Add prototype. * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. * getcwd.c (getcwd): Use standard definition to avoid conflicts with system headers. * hashtab.c (htab_traverse): Delete unused variables. * rename.c: Include "ansidecl.h". (rename): Use standard definition to avoid conflicts with system headers. * strsignal.c: Rely on ANSI_PROTOTYPES. * strstr.c: Check GNUC >= 2, not GNUC == 2. * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. * vprintf.c: Include "ansidecl.h" earlier, rely on ANSI_PROTOTYPES. * vsprintf.c: Include "ansidecl.h" earlier, rely on ANSI_PROTOTYPES and possibly include <stdarg.h>. * Makefile.in: Regenerate dependencies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65659 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/strstr.c')
-rw-r--r--libiberty/strstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/strstr.c b/libiberty/strstr.c
index 470e04b1a76..a059c7f5dcb 100644
--- a/libiberty/strstr.c
+++ b/libiberty/strstr.c
@@ -27,8 +27,8 @@ strstr (s1, s2)
register char *p = s1;
extern char *strchr ();
extern int strncmp ();
-#if __GNUC__==2
- extern __SIZE_TYPE__ strlen ();
+#if __GNUC__ >= 2
+ extern __SIZE_TYPE__ strlen (const char *);
#endif
register int len = strlen (s2);
OpenPOWER on IntegriCloud