diff --git a/ndk/platforms/android-13/include/android/asset_manager.h b/ndk/platforms/android-13/include/android/asset_manager.h index f5df46bd7..6ac350e9d 100644 --- a/ndk/platforms/android-13/include/android/asset_manager.h +++ b/ndk/platforms/android-13/include/android/asset_manager.h @@ -18,6 +18,8 @@ #ifndef ANDROID_ASSET_MANAGER_H #define ANDROID_ASSET_MANAGER_H +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/ndk/platforms/android-14/include/android/rect.h b/ndk/platforms/android-14/include/android/rect.h index 64d487dc2..bcd42a99e 100644 --- a/ndk/platforms/android-14/include/android/rect.h +++ b/ndk/platforms/android-14/include/android/rect.h @@ -18,6 +18,8 @@ #ifndef ANDROID_RECT_H #define ANDROID_RECT_H +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/ndk/platforms/android-3/include/jni.h b/ndk/platforms/android-3/include/jni.h index 5a01fff72..f36398fc5 100644 --- a/ndk/platforms/android-3/include/jni.h +++ b/ndk/platforms/android-3/include/jni.h @@ -1144,8 +1144,8 @@ jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); * Prototypes for functions exported by loadable shared libs. These are * called by JNI, not provided by JNI. */ -JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved); -JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved); +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved); +JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved); #ifdef __cplusplus }