{
JvAssert (the_vm && vm == the_vm);
- JNIEnv *env;
+ union
+ {
+ JNIEnv *env;
+ void *env_p;
+ };
+
if (_Jv_ThreadCurrent () != NULL)
{
jstring main_name;
return JNI_ERR;
}
- jint r = _Jv_JNI_AttachCurrentThread (vm, main_name,
- reinterpret_cast<void **> (&env),
+ jint r = _Jv_JNI_AttachCurrentThread (vm, main_name, &env_p,
NULL, false);
if (r < 0)
return r;