src/cpu/x86/vm/jni_x86.h

changeset 5063
58bb870a0cbd
parent 4465
203f64878aab
child 6876
710a3c8b516e
     1.1 --- a/src/cpu/x86/vm/jni_x86.h	Tue May 07 14:33:09 2013 +0200
     1.2 +++ b/src/cpu/x86/vm/jni_x86.h	Tue May 07 13:45:59 2013 -0400
     1.3 @@ -28,7 +28,13 @@
     1.4  
     1.5  #if defined(SOLARIS) || defined(LINUX) || defined(_ALLBSD_SOURCE)
     1.6  
     1.7 -#if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
     1.8 +
     1.9 +// Note: please do not change these without also changing jni_md.h in the JDK
    1.10 +// repository
    1.11 +#ifndef __has_attribute
    1.12 +  #define __has_attribute(x) 0
    1.13 +#endif
    1.14 +#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
    1.15    #define JNIEXPORT     __attribute__((visibility("default")))
    1.16    #define JNIIMPORT     __attribute__((visibility("default")))
    1.17  #else

mercurial