hotspot/src/cpu/sparc/vm/jni_sparc.h
changeset 8106 19106a0203fb
parent 7397 5b173b4ca846
child 8921 14bfe81f2a9d
--- a/hotspot/src/cpu/sparc/vm/jni_sparc.h	Thu Jan 27 16:11:27 2011 -0800
+++ b/hotspot/src/cpu/sparc/vm/jni_sparc.h	Tue Feb 01 11:23:19 2011 -0500
@@ -23,8 +23,13 @@
  * 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;