Android: Fixed compile warning about a missing prototype (thanks, Sylvain!).
authorPhilipp Wiesemann
Sun, 17 Jul 2016 21:42:53 +0200
changeset 10198136b3507f669
parent 10197 623c40e8fd65
child 10199 6ab154366a9b
Android: Fixed compile warning about a missing prototype (thanks, Sylvain!).

Fixes Bugzilla #3351.
src/main/android/SDL_android_main.c
     1.1 --- a/src/main/android/SDL_android_main.c	Sun Jul 17 20:32:44 2016 +0200
     1.2 +++ b/src/main/android/SDL_android_main.c	Sun Jul 17 21:42:53 2016 +0200
     1.3 @@ -16,6 +16,9 @@
     1.4  /* Called before SDL_main() to initialize JNI bindings in SDL library */
     1.5  extern void SDL_Android_Init(JNIEnv* env, jclass cls);
     1.6  
     1.7 +/* This prototype is needed to prevent a warning about the missing prototype for global function below */
     1.8 +JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array);
     1.9 +
    1.10  /* Start up the SDL app */
    1.11  JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array)
    1.12  {