Fixed prototype for SDL_main()
authorSam Lantinga <slouken@libsdl.org>
Tue, 04 Jan 2011 11:39:52 -0800
changeset 4953 4f40b11e1045
parent 4952 18fe0aded409
child 4954 144d9df7e611
Fixed prototype for SDL_main() FIXME: Still need to pass some arguments - can we get them from the Java class?
android/project/jni/android-support.cpp
--- a/android/project/jni/android-support.cpp	Tue Jan 04 11:39:04 2011 -0800
+++ b/android/project/jni/android-support.cpp	Tue Jan 04 11:39:52 2011 -0800
@@ -36,7 +36,7 @@
 jmethodID midEnableFeature;
 jmethodID midUpdateAudio;
 
-extern "C" int SDL_main();
+extern "C" int SDL_main(int argc, char *argv[]);
 extern "C" int Android_OnKeyDown(int keycode);
 extern "C" int Android_OnKeyUp(int keycode);
 extern "C" void Android_SetScreenResolution(int width, int height);
@@ -103,7 +103,7 @@
 
 	Android_EnableFeature(FEATURE_ACCEL, true);
 
-    SDL_main();
+    SDL_main(0, 0);
 }
 
 //Keydown