Browse Source

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.
Sam Lantinga 10 years ago
parent
commit
270f38db08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/android/SDL_android_main.c

+ 1 - 1
src/main/android/SDL_android_main.c

@@ -17,7 +17,7 @@
 extern void SDL_Android_Init(JNIEnv* env, jclass cls);
 extern void SDL_Android_Init(JNIEnv* env, jclass cls);
 
 
 /* Start up the SDL app */
 /* 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 i;
     int argc;
     int argc;