From 270f38db08236afbbbc15630d432944b6eea24ee Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 1 Aug 2015 22:03:50 -0700 Subject: [PATCH] Fixed bug 3083 - Android JNIEXPORT and JNICALL missing Martin Gerhardy Just a minor thing, but a huge outcome. All the other jni related functions already have those flags, but the nativeInit function lacks them - so it might be stripped away. --- src/main/android/SDL_android_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/android/SDL_android_main.c b/src/main/android/SDL_android_main.c index 3a53d0929..4173bcb1d 100644 --- a/src/main/android/SDL_android_main.c +++ b/src/main/android/SDL_android_main.c @@ -17,7 +17,7 @@ extern void SDL_Android_Init(JNIEnv* env, jclass cls); /* Start up the SDL app */ -int Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array) +JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array) { int i; int argc;