This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

trivial libjava/exception.cc patch


1999-11-27  Per Bothner  <per@bothner.com>

	* exception.cc:  Remove prototype declarations for malloc and free.
        These clash with recent versions of glibc, which specifies `throws ()'
        when __cplusplus is defined.  Instead, #include <stdlib.h>.

Index: exception.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/exception.cc,v
retrieving revision 1.5
diff -u -r1.5 exception.cc
--- exception.cc	1999/11/19 19:13:42	1.5
+++ exception.cc	1999/11/28 03:58:41
@@ -12,6 +12,7 @@
 
 #include "exception"
 #include <stddef.h>
+#include <stdlib.h>
 
 #include <java/lang/Class.h>
 #include <java/lang/NullPointerException.h>
@@ -36,9 +37,6 @@
 extern "C" void __sjthrow () __attribute__ ((__noreturn__));
 extern "C" short __get_eh_table_version (void *table);
 extern "C" short __get_eh_table_language (void *table);
-
-extern "C" void * malloc (size_t);
-extern "C" void free (void *);
 
 
 extern "C" void *

-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]