bug 688628 - js-ctypes access to jni r=dougt
authorEitan Isaacson <eitan@monotonous.org>
Thu, 22 Sep 2011 19:32:02 -0400
changeset 77366 84df818f0d2e7d690a802a732ecb1068a6a4f5e5
parent 77365 9d0c5f3e33925fc6a3fce709f995567efdc6c35f
child 77367 3e60b13624dc5abb8f007f4d6fe14182643fed99
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersdougt
bugs688628
milestone9.0a1
bug 688628 - js-ctypes access to jni r=dougt
widget/src/android/AndroidBridge.cpp
--- a/widget/src/android/AndroidBridge.cpp
+++ b/widget/src/android/AndroidBridge.cpp
@@ -892,19 +892,22 @@ mozilla_AndroidBridge_GetJavaVM()
 }
 
 JNIEnv *
 mozilla_AndroidBridge_AttachThread(PRBool asDaemon)
 {
     return AndroidBridge::Bridge()->AttachThread(asDaemon);
 }
 
-extern "C" JNIEnv * GetJNIForThread()
-{
-    return mozilla::AndroidBridge::JNIForThread();
+extern "C" {
+    __attribute__ ((visibility("default")))
+    JNIEnv * GetJNIForThread()
+    {
+        return mozilla::AndroidBridge::JNIForThread();
+    }
 }
 
 jclass GetGeckoAppShellClass()
 {
     return mozilla::AndroidBridge::GetGeckoAppShellClass();
 }
 
 void