diff options
author | Andreas Schwab <schwab@suse.de> | 2006-06-05 21:21:05 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2006-06-05 21:21:05 +0000 |
commit | 596475f03646e2daea558bc5cb24dcb345895f3a (patch) | |
tree | 07dd6e5ce97f13710348e5b46c877a6083e1d397 /libjava/link.cc | |
parent | 8a398c2c8a42e5310d64b30944f7b17afa33e278 (diff) | |
download | gcc-596475f03646e2daea558bc5cb24dcb345895f3a.zip gcc-596475f03646e2daea558bc5cb24dcb345895f3a.tar.gz gcc-596475f03646e2daea558bc5cb24dcb345895f3a.tar.bz2 |
re PR libgcj/27860 (build failure on m68k: error: 'ffi_closure' does not name a type)
PR libgcj/27860
* link.cc: Check for closure support in libffi with FFI_CLOSURES.
From-SVN: r114411
Diffstat (limited to 'libjava/link.cc')
-rw-r--r-- | libjava/link.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/link.cc b/libjava/link.cc index 4f01cb5..f95b128 100644 --- a/libjava/link.cc +++ b/libjava/link.cc @@ -788,7 +788,7 @@ _Jv_ThrowNoSuchMethodError () throw new java::lang::NoSuchMethodError; } -#ifdef USE_LIBFFI +#if defined USE_LIBFFI && FFI_CLOSURES // A function whose invocation is prepared using libffi. It gets called // whenever a static method of a missing class is invoked. The data argument // holds a reference to a String denoting the missing class. @@ -974,7 +974,7 @@ _Jv_Linker::find_iindex (jclass *ifaces, jshort *offsets, jshort num) return i; } -#ifdef USE_LIBFFI +#if defined USE_LIBFFI && FFI_CLOSURES // We use a structure of this type to store the closure that // represents a missing method. struct method_closure @@ -1027,7 +1027,7 @@ _Jv_Linker::create_error_method (_Jv_Utf8Const *) // of the missing class then. return (void *) _Jv_ThrowNoClassDefFoundError; } -#endif // USE_LIBFFI +#endif // USE_LIBFFI && FFI_CLOSURES // Functions for indirect dispatch (symbolic virtual binding) support. |