Mercurial > hg > graal-compiler
comparison src/cpu/zero/vm/jni_zero.h @ 2191:d70fe6ab4436
6588413: Use -fvisibility=hidden for gcc compiles
Summary: Add option for gcc 4 and above, define JNIEXPORT and JNIIMPORT to visibility=default, add for jio_snprintf and others since -fvisibility=hidden overrides --version-script definitions.
Reviewed-by: kamg, never
author | coleenp |
---|---|
date | Tue, 01 Feb 2011 11:23:19 -0500 |
parents | f95d63e2154a |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2177:3582bf76420e | 2191:d70fe6ab4436 |
---|---|
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | 22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
23 * or visit www.oracle.com if you need additional information or have any | 23 * or visit www.oracle.com if you need additional information or have any |
24 * questions. | 24 * questions. |
25 */ | 25 */ |
26 | 26 |
27 #define JNIEXPORT | 27 |
28 #define JNIIMPORT | 28 #if defined(__GNUC__) && (__GNUC__ >= 4) |
29 #define JNIEXPORT __attribute__((visibility("default"))) | |
30 #define JNIIMPORT __attribute__((visibility("default"))) | |
31 #else | |
32 #define JNIEXPORT | |
33 #define JNIIMPORT | |
34 #endif | |
29 #define JNICALL | 35 #define JNICALL |
30 | 36 |
31 typedef int jint; | 37 typedef int jint; |
32 typedef signed char jbyte; | 38 typedef signed char jbyte; |
33 | 39 |