hotspot/src/cpu/zero/vm/jni_zero.h
changeset 8106 19106a0203fb
parent 7397 5b173b4ca846
child 8921 14bfe81f2a9d
--- a/hotspot/src/cpu/zero/vm/jni_zero.h	Thu Jan 27 16:11:27 2011 -0800
+++ b/hotspot/src/cpu/zero/vm/jni_zero.h	Tue Feb 01 11:23:19 2011 -0500
@@ -24,8 +24,14 @@
  * questions.
  */
 
-#define JNIEXPORT
-#define JNIIMPORT
+
+#if defined(__GNUC__) && (__GNUC__ >= 4)
+  #define JNIEXPORT     __attribute__((visibility("default")))
+  #define JNIIMPORT     __attribute__((visibility("default")))
+#else
+  #define JNIEXPORT
+  #define JNIIMPORT
+#endif
 #define JNICALL
 
 typedef int jint;