trivial libjava/exception.cc patch

Per Bothner per@bothner.com
Sat Nov 27 20:04:00 GMT 1999


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /