src/java.base/unix/native/include/jni_md.h
changeset 47765 b7c7428eaab9
parent 47216 71c04702a3d5
child 56114 0d38468d211c
equal deleted inserted replaced
47764:029d5efaaa6c 47765:b7c7428eaab9
    28 
    28 
    29 #ifndef __has_attribute
    29 #ifndef __has_attribute
    30   #define __has_attribute(x) 0
    30   #define __has_attribute(x) 0
    31 #endif
    31 #endif
    32 #if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
    32 #if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
    33   #define JNIEXPORT     __attribute__((visibility("default")))
    33   #ifdef ARM
    34   #define JNIIMPORT     __attribute__((visibility("default")))
    34     #define JNIEXPORT     __attribute__((externally_visible,visibility("default")))
       
    35     #define JNIIMPORT     __attribute__((externally_visible,visibility("default")))
       
    36   #else
       
    37     #define JNIEXPORT     __attribute__((visibility("default")))
       
    38     #define JNIIMPORT     __attribute__((visibility("default")))
       
    39   #endif
    35 #else
    40 #else
    36   #define JNIEXPORT
    41   #define JNIEXPORT
    37   #define JNIIMPORT
    42   #define JNIIMPORT
    38 #endif
    43 #endif
    39 
    44 
    40 #define JNICALL
    45 #define JNICALL
    41 
    46 
    42 typedef int jint;
    47 typedef int jint;
    43 #ifdef _LP64 /* 64-bit Solaris */
    48 #ifdef _LP64
    44 typedef long jlong;
    49 typedef long jlong;
    45 #else
    50 #else
    46 typedef long long jlong;
    51 typedef long long jlong;
    47 #endif
    52 #endif
    48 
    53