aboutsummaryrefslogtreecommitdiff
path: root/libiberty/splay-tree.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@markmitchell.com>1998-10-26 23:24:48 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-10-26 23:24:48 +0000
commitad3ef78e25a7f3ec042403fe1f353226f3962477 (patch)
tree26262d496c17bc0d18198ec97263d748dee48b98 /libiberty/splay-tree.c
parent4f4b36794c9ccf9527df83fcb6a18603f4b6dcab (diff)
downloadgcc-ad3ef78e25a7f3ec042403fe1f353226f3962477.zip
gcc-ad3ef78e25a7f3ec042403fe1f353226f3962477.tar.gz
gcc-ad3ef78e25a7f3ec042403fe1f353226f3962477.tar.bz2
splay-tree.c: Tweak include directives to make sure declarations of xmalloc and free are...
* splay-tree.c: Tweak include directives to make sure declarations of xmalloc and free are available. From-SVN: r23358
Diffstat (limited to 'libiberty/splay-tree.c')
-rw-r--r--libiberty/splay-tree.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c
index 22dd267..68b9f99 100644
--- a/libiberty/splay-tree.c
+++ b/libiberty/splay-tree.c
@@ -23,8 +23,18 @@
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"