diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-17 11:42:54 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-17 11:42:54 +0000 |
commit | 00af597b8977cac8d1027920447f048b28919e36 (patch) | |
tree | 65d960b7e2f37eaf3ef7d89fadb3634bf1504efa /libiberty/cplus-dem.c | |
parent | 5ab0395ff0b7f1c6c2503b4ba3bc54ed5ba33133 (diff) | |
download | gcc-00af597b8977cac8d1027920447f048b28919e36.tar.gz |
* cplus-dem.c: Include config.h if it exists. Also, only
prototype malloc/realloc if we can't get stdlib.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21787 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r-- | libiberty/cplus-dem.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index d10e9c5b911..60c3ce96528 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -28,6 +28,10 @@ Boston, MA 02111-1307, USA. */ /* This file lives in both GCC and libiberty. When making changes, please try not to break either. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <ctype.h> #include <sys/types.h> #include <string.h> @@ -35,6 +39,9 @@ Boston, MA 02111-1307, USA. */ #ifdef HAVE_STDLIB_H #include <stdlib.h> +#else +char * malloc (); +char * realloc (); #endif #include <demangle.h> @@ -3826,9 +3833,6 @@ fatal (str) exit (1); } -char * malloc (); -char * realloc (); - char * xmalloc (size) unsigned size; |