Skip to content

Commit

Permalink
android: try to fix jni.bi
Browse files Browse the repository at this point in the history
Not tested.
However there's no translation of __NDK_FPABI__ in the original, so
floating point JNI functions at least likely don't work.
  • Loading branch information
rversteegen authored and jayrm committed Jan 2, 2024
1 parent 7d74257 commit c4b2592
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/jni.bi
Expand Up @@ -10,7 +10,9 @@
#ifndef __jni_bi__
#define __jni_bi__

#ifndef __FB_ANDROID__
#inclib "jvm"
#endif

#include once "crt/stdio.bi"
#include once "crt/stdarg.bi"
Expand Down Expand Up @@ -376,9 +378,12 @@ type JavaVM_
functions as JNIInvokeInterface_ ptr
end type

#ifndef __FB_ANDROID__
declare function JNI_GetDefaultJavaVMInitArgs alias "JNI_GetDefaultJavaVMInitArgs" (byval args as any ptr) as jint
declare function JNI_CreateJavaVM alias "JNI_CreateJavaVM" (byval pvm as JavaVM ptr ptr, byval penv as any ptr ptr, byval args as any ptr) as jint
declare function JNI_GetCreatedJavaVMs alias "JNI_GetCreatedJavaVMs" (byval as JavaVM ptr ptr, byval as jsize, byval as jsize ptr) as jint
#endif

declare function JNI_OnLoad alias "JNI_OnLoad" (byval vm as JavaVM ptr, byval reserved as any ptr) as jint
declare sub JNI_OnUnload alias "JNI_OnUnload" (byval vm as JavaVM ptr, byval reserved as any ptr)

Expand Down

0 comments on commit c4b2592

Please sign in to comment.