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 92687f2833a2191b
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
     1.1 --- a/src/core/android/SDL_android.c	Sat Dec 06 00:17:52 2014 +0100
     1.2 +++ b/src/core/android/SDL_android.c	Tue Dec 09 22:49:16 2014 +0100
     1.3 @@ -386,7 +386,7 @@
     1.4      (*env)->ReleaseStringUTFChars(env, text, utftext);
     1.5  }
     1.6  
     1.7 -jstring Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
     1.8 +JNIEXPORT jstring JNICALL Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
     1.9      const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
    1.10      const char *hint = SDL_GetHint(utfname);
    1.11