Skip to content

Commit

Permalink
Android: Fixed compile warning about a missing prototype (thanks, Syl…
Browse files Browse the repository at this point in the history
…vain!).

Fixes Bugzilla #3351.
  • Loading branch information
philippwiesemann committed Jul 17, 2016
1 parent de5daaa commit 6b1d5f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/android/SDL_android_main.c
Expand Up @@ -16,6 +16,9 @@
/* Called before SDL_main() to initialize JNI bindings in SDL library */
extern void SDL_Android_Init(JNIEnv* env, jclass cls);

/* This prototype is needed to prevent a warning about the missing prototype for global function below */
JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array);

/* Start up the SDL app */
JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array)
{
Expand Down

0 comments on commit 6b1d5f4

Please sign in to comment.