diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-26 23:24:48 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-26 23:24:48 +0000 |
commit | 797ba725379e096ab331b624225d11db23c90e50 (patch) | |
tree | 26262d496c17bc0d18198ec97263d748dee48b98 /libiberty/splay-tree.c | |
parent | 590b7e80a509d2c511f4bd1a5de8252e0a8caf3f (diff) | |
download | gcc-797ba725379e096ab331b624225d11db23c90e50.tar.gz |
* splay-tree.c: Tweak include directives to make sure declarations of
xmalloc and free are available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23358 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/splay-tree.c')
-rw-r--r-- | libiberty/splay-tree.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c index 22dd267f573..68b9f995f67 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" |