diff options
author | Richard Henderson <rth@cygnus.com> | 1999-07-14 10:29:38 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-07-14 10:29:38 -0700 |
commit | a81c752ad368501d2beea09ba4504fcabce0a868 (patch) | |
tree | a5d5c3e0b6738786023c62965667754c92cc8bdc | |
parent | 9bbecbc4852a1fba2b6433f7d4ec99b3cd2c57ed (diff) | |
download | gcc-a81c752ad368501d2beea09ba4504fcabce0a868.zip gcc-a81c752ad368501d2beea09ba4504fcabce0a868.tar.gz gcc-a81c752ad368501d2beea09ba4504fcabce0a868.tar.bz2 |
argv.c: Include stdlib.h and string.h instead of prototyping directly.
* argv.c: Include stdlib.h and string.h instead of
prototyping directly.
* choose-temp.c: Conditionally include string.h.
From-SVN: r28099
-rw-r--r-- | libiberty/ChangeLog | 6 | ||||
-rw-r--r-- | libiberty/argv.c | 8 | ||||
-rw-r--r-- | libiberty/choose-temp.c | 3 |
3 files changed, 11 insertions, 6 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 26c5625..41c21f2 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +1999-07-14 Richard Henderson <rth@cygnus.com> + + * argv.c: Include stdlib.h and string.h instead of + prototyping directly. + * choose-temp.c: Conditionally include string.h. + 1999-07-12 Jason Merrill <jason@yorick.cygnus.com> * Makefile.in (NEEDED): Add bcmp, bcopy, bzero. diff --git a/libiberty/argv.c b/libiberty/argv.c index 85c17e9..f596ffd 100644 --- a/libiberty/argv.c +++ b/libiberty/argv.c @@ -35,12 +35,8 @@ Boston, MA 02111-1307, USA. */ #ifdef __STDC__ #include <stddef.h> -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 <string.h> +#include <stdlib.h> #else /* !__STDC__ */ diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c index b1007bb..be02379 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 <stdlib.h> #endif +#ifdef HAVE_STRING_H +#include <string.h> +#endif #ifdef HAVE_SYS_FILE_H #include <sys/file.h> /* May get R_OK, etc. on some systems. */ #endif |