splay-tree.c: Tweak include directives to make sure declarations of xmalloc and free...
authorMark Mitchell <mark@markmitchell.com>
Mon, 26 Oct 1998 23:24:48 +0000 (23:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 26 Oct 1998 23:24:48 +0000 (23:24 +0000)
* splay-tree.c: Tweak include directives to make sure declarations of
xmalloc and free are available.

From-SVN: r23358

libiberty/ChangeLog
libiberty/splay-tree.c

index 653882818d64334205a1c038e463e3f19034205a..a6a4634f1d010d426fb7bc1d6e3e837e93140017 100644 (file)
@@ -1,3 +1,8 @@
+1998-10-26  Mark Mitchell  <mark@markmitchell.com>
+
+       * splay-tree.c: Tweak include directives to make sure declarations of
+       xmalloc and free are available.
+
 1998-10-25  Mark Mitchell  <mark@markmitchell.com>
 
        * cplus-dem.c (gnu_special): Fix handling of virtual tables in
index 22dd267f573b4ea793851175f3472f56d4a0681c..68b9f995f673cc47780be62b356a18acde2b884c 100644 (file)
      Lewis, Harry R. and Denenberg, Larry.  Data Structures and Their
      Algorithms.  Harper-Collins, Inc.  1991.  */
 
+#if defined (IN_GCC) || defined (HAVE_CONFIG_H)
+#include "config.h"
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
 #ifndef IN_GCC
 #include "libiberty.h"
+#else /* IN_GCC */
+extern char* xmalloc ();
 #endif /* IN_GCC */
 #include "splay-tree.h"