Fixed bug 2811 - [patch] Android core: Fix JNI 'nativeGetHint' symbol not being exported
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 09 Dec 2014 22:49:16 +0100
changeset 9268 7f2833a2191b
parent 9267 6fe4583d7e1f
child 9269 d51f84c20b10
Fixed bug 2811 - [patch] Android core: Fix JNI 'nativeGetHint' symbol not being exported Jonas Kulla I don't see a reason why this shouldn't be exported. Currently a strip -s on the final application library eats it.
src/core/android/SDL_android.c
--- a/src/core/android/SDL_android.c	Sat Dec 06 00:17:52 2014 +0100
+++ b/src/core/android/SDL_android.c	Tue Dec 09 22:49:16 2014 +0100
@@ -386,7 +386,7 @@
     (*env)->ReleaseStringUTFChars(env, text, utftext);
 }
 
-jstring Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
+JNIEXPORT jstring JNICALL Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
     const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
     const char *hint = SDL_GetHint(utfname);