Kaydet (Commit) b1b915c8 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Android compilation fix

üst 9ee4f4eb
......@@ -105,7 +105,16 @@ JNIEnv * VirtualMachine::attachThread(bool * pAttached) const
}
if (pEnv == 0)
{
if (m_pVm->AttachCurrentThread(reinterpret_cast< void ** >(&pEnv), 0)
if (m_pVm->AttachCurrentThread
(
#ifndef ANDROID
reinterpret_cast< void ** >(&pEnv),
#else
// The Android <jni.h> has AttachCurrentThread() taking a
// JNIEnv** and not void **
&pEnv,
#endif
0)
!= JNI_OK)
return 0;
*pAttached = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment