src/cpu/x86/vm/jni_x86.h

changeset 2507
d70fe6ab4436
parent 2314
f95d63e2154a
child 2708
1d1603768966
     1.1 --- a/src/cpu/x86/vm/jni_x86.h	Thu Jan 27 16:11:27 2011 -0800
     1.2 +++ b/src/cpu/x86/vm/jni_x86.h	Tue Feb 01 11:23:19 2011 -0500
     1.3 @@ -27,10 +27,16 @@
     1.4  #define _JAVASOFT_JNI_MD_H_
     1.5  
     1.6  #if defined(SOLARIS) || defined(LINUX)
     1.7 +
     1.8 +#if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
     1.9 +  #define JNIEXPORT     __attribute__((visibility("default")))
    1.10 +  #define JNIIMPORT     __attribute__((visibility("default")))
    1.11 +#else
    1.12    #define JNIEXPORT
    1.13    #define JNIIMPORT
    1.14 +#endif
    1.15 +
    1.16    #define JNICALL
    1.17 -
    1.18    typedef int jint;
    1.19  
    1.20  #ifdef _LP64

mercurial