From: Matthias Clasen Date: Sat, 3 Jan 2009 01:00:38 +0000 (+0000) Subject: Use visibility attribute for new enough sun cc. Patch by Chris Wang X-Git-Tag: GLIB_2_19_4~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e5efcdb1d18b0d3259967b26801618da1aec568;p=platform%2Fupstream%2Fglib.git Use visibility attribute for new enough sun cc. Patch by Chris Wang * configure.in: Use visibility attribute for new enough sun cc. Patch by Chris Wang svn path=/trunk/; revision=7760 --- diff --git a/ChangeLog b/ChangeLog index 83cb9aa..60606cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-02 Matthias Clasen + + Bug 564210 – SUN Studio 12 has supported visibility attribute + + * configure.in: Use visibility attribute for new enough sun cc. + Patch by Chris Wang + 2008-12-30 Matthias Clasen Bug 565905 – There is no named g_context_group_set_translation_domain() diff --git a/configure.in b/configure.in index 6cfa038..6bf37b2 100644 --- a/configure.in +++ b/configure.in @@ -2877,13 +2877,15 @@ _______EOF _______EOF fi cat >>$outfile <<_______EOF -#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) +#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) +#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) +#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) #define G_GNUC_INTERNAL __hidden #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) #else #define G_GNUC_INTERNAL -#endif +#endif _______EOF