summaryrefslogtreecommitdiffstats
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-25 23:49:34 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-25 23:49:34 +0000
commit40590a8a3f1faf15c72e48430565a338488ebb69 (patch)
tree2d693d93733cdeb009933b6830d2718a4818ece9 /libjava/jni.cc
parentd0d268f2583fa95972d8ea2b937e8a93f5ae0bdd (diff)
downloadppe42-gcc-40590a8a3f1faf15c72e48430565a338488ebb69.tar.gz
ppe42-gcc-40590a8a3f1faf15c72e48430565a338488ebb69.zip
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
`INTERPRETER'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index 42c0d07a099..92dbf3fb26e 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -1263,6 +1263,7 @@ _Jv_JNI_RegisterNatives (JNIEnv *env, jclass k,
const JNINativeMethod *methods,
jint nMethods)
{
+#ifdef INTERPRETER
// For now, this only matters for interpreted methods. FIXME.
if (! _Jv_IsInterpretedClass (k))
{
@@ -1307,6 +1308,9 @@ _Jv_JNI_RegisterNatives (JNIEnv *env, jclass k,
}
return JNI_OK;
+#else /* INTERPRETER */
+ return JNI_ERR;
+#endif /* INTERPRETER */
}
static jint
OpenPOWER on IntegriCloud