cplus-dem.c: Include config.h if it exists.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 17 Aug 1998 11:42:54 +0000 (11:42 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 Aug 1998 11:42:54 +0000 (05:42 -0600)
        * cplus-dem.c: Include config.h if it exists.  Also, only
        prototype malloc/realloc if we can't get stdlib.h.

From-SVN: r21787

libiberty/ChangeLog
libiberty/cplus-dem.c

index 77397f9316508eccff0529121b8c34b8d696466f..1cb3bdbf8dd8ee58556b9e2e457fa6d1b3d242bb 100644 (file)
@@ -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.
index d10e9c5b91116e5f6147d76d26ba71f13b93c8fb..60c3ce96528800f40d548c080bef0530158c49e4 100644 (file)
@@ -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;