From: rth Date: Wed, 14 Jul 1999 17:29:38 +0000 (+0000) Subject: * argv.c: Include stdlib.h and string.h instead of X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db081298232dca56a29f7d6c719230113659aadf;p=thirdparty%2Fgcc.git * argv.c: Include stdlib.h and string.h instead of prototyping directly. * choose-temp.c: Conditionally include string.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28099 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 26c56252e138..41c21f26d49f 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +1999-07-14 Richard Henderson + + * argv.c: Include stdlib.h and string.h instead of + prototyping directly. + * choose-temp.c: Conditionally include string.h. + 1999-07-12 Jason Merrill * Makefile.in (NEEDED): Add bcmp, bcopy, bzero. diff --git a/libiberty/argv.c b/libiberty/argv.c index 85c17e930eef..f596ffd0110a 100644 --- a/libiberty/argv.c +++ b/libiberty/argv.c @@ -35,12 +35,8 @@ Boston, MA 02111-1307, USA. */ #ifdef __STDC__ #include -extern void *memcpy (void *s1, const void *s2, size_t n); /* 4.11.2.1 */ -extern size_t strlen (const char *s); /* 4.11.6.3 */ -extern void *malloc (size_t size); /* 4.10.3.3 */ -extern void *realloc (void *ptr, size_t size); /* 4.10.3.4 */ -extern void free (void *ptr); /* 4.10.3.2 */ -extern char *strdup (const char *s); /* Non-ANSI */ +#include +#include #else /* !__STDC__ */ diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c index b1007bb546bd..be023791d4cc 100644 --- a/libiberty/choose-temp.c +++ b/libiberty/choose-temp.c @@ -34,6 +34,9 @@ Boston, MA 02111-1307, USA. */ #ifdef HAVE_STDLIB_H #include #endif +#ifdef HAVE_STRING_H +#include +#endif #ifdef HAVE_SYS_FILE_H #include /* May get R_OK, etc. on some systems. */ #endif