This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH for splay-tree.c include files
- To: egcs-patches at cygnus dot com
- Subject: PATCH for splay-tree.c include files
- From: Mark Mitchell <mark at markmitchell dot com>
- Date: Mon, 26 Oct 1998 23:27:49 -0800
- Reply-to: mark at markmitchell dot com
We need prototypes of xmalloc and free for 64-bit targets in
splay-tree.c. I checked this in.
--
Mark Mitchell mark@markmitchell.com
Mark Mitchell Consulting http://www.markmitchell.com
1998-10-26 Mark Mitchell <mark@markmitchell.com>
* splay-tree.c: Tweak include directives to make sure declarations of
xmalloc and free are available.
Index: splay-tree.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libiberty/splay-tree.c,v
retrieving revision 1.2
diff -c -p -r1.2 splay-tree.c
*** splay-tree.c 1998/10/22 17:00:43 1.2
--- splay-tree.c 1998/10/27 07:23:58
***************
*** 23,30 ****
--- 23,40 ----
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"