From 2fbd29ff8b28996757e718c3cdf60fa58ba6527b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=BAlio=20Henrique?= Date: Sun, 16 Aug 2015 13:48:35 -0300 Subject: [PATCH] Added preprocessor directive on mobilefacade.cpp --- android/SDL_android_main.c | 40 -------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 android/SDL_android_main.c diff --git a/android/SDL_android_main.c b/android/SDL_android_main.c deleted file mode 100644 index 4b1fe024..00000000 --- a/android/SDL_android_main.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - SDL_android_main.c, placed in the public domain by Sam Lantinga 3/13/14 -*/ -#include "SDL_internal.h" - -#ifdef __ANDROID__ - -/* Include the SDL main definition header */ -#include "SDL_main.h" - -/******************************************************************************* - Functions called by JNI -*******************************************************************************/ -#include - -/* Called before SDL_main() to initialize JNI bindings in SDL library */ -extern void SDL_Android_Init(JNIEnv* env, jclass cls); - -/* Start up the SDL app */ -void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj) -{ - /* This interface could expand with ABI negotiation, calbacks, etc. */ - SDL_Android_Init(env, cls); - - SDL_SetMainReady(); - - /* Run the application code! */ - int status; - char *argv[2]; - argv[0] = SDL_strdup("SDL_app"); - argv[1] = NULL; - status = SDL_main(1, argv); - - /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */ - /* exit(status); */ -} - -#endif /* __ANDROID__ */ - -/* vi: set ts=4 sw=4 expandtab: */