aboutsummaryrefslogtreecommitdiff
path: root/libjava/exception.cc
diff options
context:
space:
mode:
authortromey <>1999-11-29 19:43:55 +0000
committertromey <>1999-11-29 19:43:55 +0000
commit9da72b6da543457f0b44b995421465bd88d43562 (patch)
treeb5e332c021789e510b768fc1fac74f3475a37491 /libjava/exception.cc
parent7e597b780dde3a8c191b49dd4b987c6d8523ea7d (diff)
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>.
Diffstat (limited to 'libjava/exception.cc')
-rw-r--r--libjava/exception.cc4
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,