From ac52f669c56647369012fc53fc414856db10e6bd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 25 Feb 2000 23:49:34 +0000 Subject: [PATCH] jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'. * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'. From-SVN: r32156 --- libjava/ChangeLog | 5 +++++ libjava/jni.cc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 22f85229320..e2c84d29dd6 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2000-02-25 Tom Tromey + + * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on + `INTERPRETER'. + 2000-02-25 Bryce McKinlay * java/net/URLConnection.java (initializeDateFormats): New 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