Commit fbbd593230e9c5112c8c7aca900e16ee120a1036

Philipp Wiesemann 2014-12-09T22:49:16

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
index b62ab1a..51a1269 100644
--- a/src/core/android/SDL_android.c
+++ b/src/core/android/SDL_android.c
@@ -386,7 +386,7 @@ JNIEXPORT void JNICALL Java_org_libsdl_app_SDLInputConnection_nativeSetComposing
     (*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);