Commit 9b811d11 by Per Bothner Committed by Tom Tromey

exception.cc: Remove prototype declarations for malloc and free.

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>.

From-SVN: r30709
parent d0f89bfc
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>.
1999-11-24 Tom Tromey <tromey@cygnus.com>
* prims.cc (_Jv_NewObjectArray): Use
......
......@@ -12,6 +12,7 @@ details. */
#include "exception"
#include <stddef.h>
#include <stdlib.h>
#include <java/lang/Class.h>
#include <java/lang/NullPointerException.h>
......@@ -37,9 +38,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 *
_Jv_type_matcher (java_eh_info *info, void* match_info,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment