src/cpu/zero/vm/jni_zero.h
Print this page
*** 23,33 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! #if defined(__GNUC__) && (__GNUC__ >= 4)
#define JNIEXPORT __attribute__((visibility("default")))
#define JNIIMPORT __attribute__((visibility("default")))
#else
#define JNIEXPORT
#define JNIIMPORT
--- 23,36 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! #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
#define JNIEXPORT
#define JNIIMPORT