Provide support for JNI calls

This commit is contained in:
Garen J. Torikian
2011-08-19 23:47:27 -07:00
parent d4baacd8a6
commit 972d6c3039
2 changed files with 29 additions and 1 deletions

View File

@@ -24,6 +24,9 @@
#define _SDL_main_h
#include "SDL_stdinc.h"
#ifdef RELEASE_BUILD
#include <jni.h>
#endif
/** @file SDL_main.h
* Redefine main() on Win32 and MacOS so that it is called by winmain.c
@@ -54,8 +57,11 @@
#define main SDL_main
/** The prototype for the application's main() function */
#ifdef RELEASE_BUILD
extern C_LINKAGE int SDL_main(int argc, char *argv[], JNIEnv* env, jobject thiz);
#else
extern C_LINKAGE int SDL_main(int argc, char *argv[]);
#endif
/** @name From the SDL library code -- needed for registering the app on Win32 */
/*@{*/