Make G_GNUC_INTERNAL a no-op for gcc 2.95. (#329031, David Schleef, Marc

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
This commit is contained in:
Matthias Clasen 2007-01-12 15:17:00 +00:00 committed by Matthias Clasen
parent 2c7dbe9c73
commit 247997afed
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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:

View 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