Make G_GNUC_INTERNAL a no-op for gcc 2.95. (#329031, David Schleef, Marc
authorMatthias Clasen <mclasen@redhat.com>
Fri, 12 Jan 2007 15:17:00 +0000 (15:17 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 12 Jan 2007 15:17:00 +0000 (15:17 +0000)
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Make G_GNUC_INTERNAL a no-op for
        gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)

svn path=/trunk/; revision=5245

ChangeLog
configure.in

index d4979ed..230cfaf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
 
+       * configure.in: Make G_GNUC_INTERNAL a no-op for
+       gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)
+       
+2007-01-12  Matthias Clasen  <mclasen@redhat.com>
+
        * gthread/gthread-posix.c:
        * glib/gtimer.c:
        * glib/gthread.c: Fix errors in the recently moved
index 8203fd8..f0400c2 100644 (file)
@@ -2433,8 +2433,12 @@ _______EOF
 
        if test x$g_have_gnuc_visibility = xyes ; then
                cat >>$outfile <<_______EOF
+#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
+#define G_GNUC_INTERNAL
+#else
 #define G_HAVE_GNUC_VISIBILITY 1
 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
+#fi
 _______EOF
        else
                cat >>$outfile <<_______EOF