--- old/src/cpu/zero/vm/jni_zero.h 2013-05-01 16:28:19.443539897 -0400 +++ new/src/cpu/zero/vm/jni_zero.h 2013-05-01 16:28:19.291538468 -0400 @@ -25,7 +25,10 @@ */ -#if defined(__GNUC__) && (__GNUC__ >= 4) +#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