From 9da72b6da543457f0b44b995421465bd88d43562 Mon Sep 17 00:00:00 2001 From: tromey <> Date: Mon, 29 Nov 1999 19:43:55 +0000 Subject: 1999-11-27 Per Bothner * 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 . --- libjava/exception.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libjava/exception.cc') 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 +#include #include #include @@ -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, -- cgit v1.2.3