On 05/ 3/18 06:17 AM, suzuki toshiya wrote: >> Thus, attribute visibility is only enabled for GCC >= 4. > > So, challenging option is that enabling attribute-visibility-default > for Oracle cc. Distinction between "on Solaris" and "by Oracle CC" > is slightly complicated, but I could find something in here: > > https://docs.oracle.com/cd/E19205-01/820-1209/bjaii/index.html > https://stackoverflow.com/questions/37715467/how-to-print-preprocessor-macros-under-sun-studio > > Maybe "__SUNPRO_C" could be used as the indicator.
Yes - the X.Org autoconf files do: AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) Reference: https://cgit.freedesktop.org/xorg/util/macros/tree/xorg-macros.m4.in And for the visibility attributes X.Org uses the ifdefs in: https://cgit.freedesktop.org/xorg/proto/xorgproto/tree/include/X11/Xfuncproto.h#n97 (using the original annotations from the Sun compiler before the attribute form became popularized, but you can see other attributes in that file are handled correctly as well). -- -Alan Coopersmith- [email protected] Oracle Solaris Engineering - https://blogs.oracle.com/alanc _______________________________________________ Freetype-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype-devel
