* argv.c: Include stdlib.h and string.h instead of
authorRichard Henderson <rth@redhat.com>
Wed, 14 Jul 1999 17:32:02 +0000 (17:32 +0000)
committerRichard Henderson <rth@redhat.com>
Wed, 14 Jul 1999 17:32:02 +0000 (17:32 +0000)
        prototyping directly.
        * choose-temp.c: Conditionally include string.h.

libiberty/ChangeLog
libiberty/argv.c
libiberty/choose-temp.c

index eb9aec23f925538e38e67fd424f21c25ddfd74ca..9248429ed50f9fd66acc7648d6839069f78fc7f2 100644 (file)
@@ -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-11  Ian Lance Taylor  <ian@zembu.com>
 
        * splay-tree.c (splay_tree_insert): Add initialization to avoid
index 85c17e930eef7f6ad9f38324b14a605f6cace923..f596ffd0110a033ed095cc989cdf9b900c1500b0 100644 (file)
@@ -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__ */
 
index 49c738691550b14a1856c8119242b38fcd66bc7a..7aae318f9ebe49c3bc905eff612996b23f874e4d 100644 (file)
@@ -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