Define JNIEXPORT as visibility default with GCC? (original) (raw)

David DeHaven david.dehaven at oracle.com
Thu Feb 14 19:09:37 UTC 2013


+#if defined(GNUC) && (GNUC > 4) || (GNUC == 4) && (GNUCMINOR > 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