GNOME Bugzilla – Bug 329031
G_GNUC_INTERNAL fails with gcc-2.95
Last modified: 2011-02-18 15:50:35 UTC
In my current installation, I get the following definition of G_GNUC_INTERNAL: #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) When used by other header files (gmessages.h, for example) in a function prototype, gcc-2.95 chokes on it. Arguably, because of the age of gcc-2.95, this isn't high priority, but should be easy to fix. Also, if this is a distro error, please advise.
Created attachment 79854 [details] [review] only define G_GNUC_INTERNAL if gcc >= 2.95 is used This patch should fix the problem (which is based on the few lines proposed in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=303124;msg=15)
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)