diff options
author | Per Bothner <per@bothner.com> | 1999-11-29 11:43:55 -0800 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-11-29 19:43:55 +0000 |
commit | 9b811d11de8f2ccac62759a2c78fae00b6a3f4c4 (patch) | |
tree | b5e332c021789e510b768fc1fac74f3475a37491 /libjava/exception.cc | |
parent | d0f89bfce0ad403ff763b9beb51f5fbb76701639 (diff) | |
download | gcc-9b811d11de8f2ccac62759a2c78fae00b6a3f4c4.zip gcc-9b811d11de8f2ccac62759a2c78fae00b6a3f4c4.tar.gz gcc-9b811d11de8f2ccac62759a2c78fae00b6a3f4c4.tar.bz2 |
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
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 0dbf4aa..3a458dc 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, |