diff options
author | amurillo <none@none> | 2013-05-10 11:14:08 -0700 |
---|---|---|
committer | amurillo <none@none> | 2013-05-10 11:14:08 -0700 |
commit | 66de0e0741c042261606d62e0215a57b320519fc (patch) | |
tree | c3d533908a8ddda52365d2acaff93b53ce2d3872 /src/cpu/zero/vm/jni_zero.h | |
parent | 3a384c643c4940372d4bfa9d128d6a23c4646632 (diff) | |
parent | c3dbf01a361b9a5ac1bd499f039c075a59af3b23 (diff) |
Mergehs25-b32
Diffstat (limited to 'src/cpu/zero/vm/jni_zero.h')
-rw-r--r-- | src/cpu/zero/vm/jni_zero.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cpu/zero/vm/jni_zero.h b/src/cpu/zero/vm/jni_zero.h index 6ac4f63ea..11157f4f0 100644 --- a/src/cpu/zero/vm/jni_zero.h +++ b/src/cpu/zero/vm/jni_zero.h @@ -25,7 +25,13 @@ */ -#if defined(__GNUC__) && (__GNUC__ >= 4) + +// Note: please do not change these without also changing jni_md.h in the JDK +// repository +#ifndef __has_attribute + #define __has_attribute(x) 0 +#endif +#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility) #define JNIEXPORT __attribute__((visibility("default"))) #define JNIIMPORT __attribute__((visibility("default"))) #else |