summaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-14 20:36:37 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-14 20:36:37 +0000
commit2aa168a3e494c7f1d3be2ee9f03b6a10b6638fda (patch)
tree0235c0a5bba4955b789d205a50a61eb9827815b2 /libjava/jni.cc
parent354827e5333be0fdaf33d093f429e8d1415b8f90 (diff)
downloadgcc-2aa168a3e494c7f1d3be2ee9f03b6a10b6638fda.tar.gz
* jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
ffi_raw_call if FFI_NATIVE_RAW_API is not defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index e9e557a3645..53491cb606d 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -2213,8 +2213,13 @@ _Jv_JNIMethod::call (ffi_cif *, void *ret, ffi_raw *args, void *__this)
memcpy (&real_args[offset], args, _this->args_raw_size);
// The actual call to the JNI function.
+#if FFI_NATIVE_RAW_API
ffi_raw_call (&_this->jni_cif, (void (*)()) _this->function,
ret, real_args);
+#else
+ ffi_java_raw_call (&_this->jni_cif, (void (*)()) _this->function,
+ ret, real_args);
+#endif
if (sync != NULL)
_Jv_MonitorExit (sync);