jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'.

* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
	`INTERPRETER'.

From-SVN: r32156
This commit is contained in:
Tom Tromey 2000-02-25 23:49:34 +00:00 committed by Tom Tromey
parent 9c236404ba
commit ac52f669c5
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-02-25 Tom Tromey <tromey@cygnus.com>
* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
`INTERPRETER'.
2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
* java/net/URLConnection.java (initializeDateFormats): New

View File

@ -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