Define JNIEXPORT as visibility default with GCC?
David DeHaven
david.dehaven at oracle.com
Thu Feb 14 19:09:37 UTC 2013
>> +#if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) &&
>> (__GNUC_MINOR__ > 2)
>> + #define JNIEXPORT __attribute__((visibility("default")))
>> + #define JNIIMPORT __attribute__((visibility("default")))
>
> The default compiler in Xcode 4.1 is llvm-gcc 4.2, it seems. The conditional above excludes that. Is this intentional?
It's *is* gcc, with a LLVM backend.
-DrD-
More information about the core-libs-dev
mailing list