Fixed bug 3083 - Android JNIEXPORT and JNICALL missing
authorSam Lantinga <slouken@libsdl.org>
Sat, 01 Aug 2015 22:03:50 -0700
changeset 9828 4e0e4f544027
parent 9827 6f0b76fa61e7
child 9829 6961c662493c
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
--- a/src/main/android/SDL_android_main.c	Sat Aug 01 15:16:57 2015 -0300
+++ b/src/main/android/SDL_android_main.c	Sat Aug 01 22:03:50 2015 -0700
@@ -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;