diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-08-17 11:42:54 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-08-17 05:42:54 -0600 |
commit | a782562574c26954eb5b321aea025df13690ccaa (patch) | |
tree | 65d960b7e2f37eaf3ef7d89fadb3634bf1504efa /libiberty | |
parent | 69789cfc8fbd55fe43d995b79744511637983944 (diff) | |
download | gcc-a782562574c26954eb5b321aea025df13690ccaa.zip gcc-a782562574c26954eb5b321aea025df13690ccaa.tar.gz gcc-a782562574c26954eb5b321aea025df13690ccaa.tar.bz2 |
cplus-dem.c: Include config.h if it exists.
* cplus-dem.c: Include config.h if it exists. Also, only
prototype malloc/realloc if we can't get stdlib.h.
From-SVN: r21787
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 77397f9..1cb3bdb 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * cplus-dem.c: Include config.h if it exists. Also, only + prototype malloc/realloc if we can't get stdlib.h. + Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com> * cplus-dem.c (type_kind_t): New type. diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index d10e9c5..60c3ce9 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; |