Check for all four values of the visibility attribute; gcc 2.96 seems to
authorMatthias Clasen <mclasen@redhat.com>
Tue, 17 Aug 2004 20:28:24 +0000 (20:28 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 17 Aug 2004 20:28:24 +0000 (20:28 +0000)
2004-08-17  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Check for all four values of the
visibility attribute; gcc 2.96 seems to miss
"default".  (#150379, Vincent Noel)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 03d0230..d470a34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Check for all four values of the
+       visibility attribute; gcc 2.96 seems to miss 
+       "default".  (#150379, Vincent Noel)
+
 2004-08-16  Christian Rose  <menthos@menthos.com>
 
        * configure.in: Added "bs" to ALL_LINGUAS.
index 03d0230..d470a34 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Check for all four values of the
+       visibility attribute; gcc 2.96 seems to miss 
+       "default".  (#150379, Vincent Noel)
+
 2004-08-16  Christian Rose  <menthos@menthos.com>
 
        * configure.in: Added "bs" to ALL_LINGUAS.
index 03d0230..d470a34 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Check for all four values of the
+       visibility attribute; gcc 2.96 seems to miss 
+       "default".  (#150379, Vincent Noel)
+
 2004-08-16  Christian Rose  <menthos@menthos.com>
 
        * configure.in: Added "bs" to ALL_LINGUAS.
index 03d0230..d470a34 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Check for all four values of the
+       visibility attribute; gcc 2.96 seems to miss 
+       "default".  (#150379, Vincent Noel)
+
 2004-08-16  Christian Rose  <menthos@menthos.com>
 
        * configure.in: Added "bs" to ALL_LINGUAS.
index 03d0230..d470a34 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Check for all four values of the
+       visibility attribute; gcc 2.96 seems to miss 
+       "default".  (#150379, Vincent Noel)
+
 2004-08-16  Christian Rose  <menthos@menthos.com>
 
        * configure.in: Added "bs" to ALL_LINGUAS.
index c633219..b024157 100644 (file)
@@ -672,13 +672,30 @@ AC_MSG_CHECKING(for GNUC visibility attribute)
 GLIB_CHECK_COMPILE_WARNINGS([
 void
 __attribute__ ((visibility ("hidden")))
-     f (void)
+     f_hidden (void)
+{
+}
+void
+__attribute__ ((visibility ("internal")))
+     f_internal (void)
+{
+}
+void
+__attribute__ ((visibility ("protected")))
+     f_protected (void)
+{
+}
+void
+__attribute__ ((visibility ("default")))
+     f_default (void)
 {
 }
-
 int main (int argc, char **argv)
 {
-       f();
+       f_hidden();
+       f_internal();
+       f_protected();
+       f_default();
        return 0;
 }
 ],g_have_gnuc_visibility=yes,g_have_gnuc_visibility=no)