diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-29 19:43:55 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-29 19:43:55 +0000 |
commit | d3d6af2e0df2a833bcee7cbe87ab1f5fd6294fc1 (patch) | |
tree | b5e332c021789e510b768fc1fac74f3475a37491 /libjava/exception.cc | |
parent | 1373dc94fbacca7767e4794f7d1bf7ca36178f6b (diff) | |
download | gcc-d3d6af2e0df2a833bcee7cbe87ab1f5fd6294fc1.tar.gz |
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>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/exception.cc')
-rw-r--r-- | libjava/exception.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libjava/exception.cc b/libjava/exception.cc index 0dbf4aa1b54..3a458dc9042 100644 --- a/libjava/exception.cc +++ b/libjava/exception.cc @@ -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, |