glib r7785 - branches/glib-2-18



Author: matthiasc
Date: Fri Jan  9 05:40:32 2009
New Revision: 7785
URL: http://svn.gnome.org/viewvc/glib?rev=7785&view=rev

Log:
        Bug 564210 â SUN Studio 12 has supported visibility attribute

        * configure.in: Use visibility attribute for new enough sun cc.
        Patch by Chris Wang



Modified:
   branches/glib-2-18/ChangeLog
   branches/glib-2-18/configure.in

Modified: branches/glib-2-18/configure.in
==============================================================================
--- branches/glib-2-18/configure.in	(original)
+++ branches/glib-2-18/configure.in	Fri Jan  9 05:40:32 2009
@@ -2863,13 +2863,15 @@
 _______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
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]