Mercurial > hg > truffle
comparison src/cpu/sparc/vm/jni_sparc.h @ 10231:58bb870a0cbd
8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
Summary: Update JNIEXPORT and JNIIMPORT to work with other compilers that don't necessarily have the __attribute__ type qualifier
Reviewed-by: dholmes, dcubed, coleenp
author | emc |
---|---|
date | Tue, 07 May 2013 13:45:59 -0400 |
parents | 1d1603768966 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
10229:f6a055fcf47d | 10231:58bb870a0cbd |
---|---|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 * or visit www.oracle.com if you need additional information or have any | 22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. | 23 * questions. |
24 */ | 24 */ |
25 | 25 |
26 #if defined(__GNUC__) && (__GNUC__ >= 4) | 26 // Note: please do not change these without also changing jni_md.h in the JDK |
27 // repository | |
28 #ifndef __has_attribute | |
29 #define __has_attribute(x) 0 | |
30 #endif | |
31 #if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility) | |
27 #define JNIEXPORT __attribute__((visibility("default"))) | 32 #define JNIEXPORT __attribute__((visibility("default"))) |
28 #define JNIIMPORT __attribute__((visibility("default"))) | 33 #define JNIIMPORT __attribute__((visibility("default"))) |
29 #else | 34 #else |
30 #define JNIEXPORT | 35 #define JNIEXPORT |
31 #define JNIIMPORT | 36 #define JNIIMPORT |