After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 53162 - #include <glib.h> fails if const is defined (by AC_C_CONST)
#include <glib.h> fails if const is defined (by AC_C_CONST)
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2001-04-12 20:35 UTC by Darin Adler
Modified: 2011-02-18 15:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to use __const__ instead of const (2.13 KB, patch)
2001-04-12 20:35 UTC, Darin Adler
none Details | Review
patch again (minus extra stuff I accidentally included in the other one) (1.19 KB, patch)
2001-04-12 20:44 UTC, Darin Adler
none Details | Review
even-better patch, please ignore the previous two (1.42 KB, patch)
2001-04-12 20:45 UTC, Darin Adler
none Details | Review

Description Darin Adler 2001-04-12 20:35:25 UTC
Someone reported on gtk-devel-list that AC_C_CONST was acting like the
const keyword was broken and defining const. That sounds like a terrible
bug in AC_C_CONST, because const is not broken in gcc!

Anyway, gcc provides underscore-surrounded versions of its keywords anyway
to prevent problems like this, so without figuring out what the original
poster's problem is, we can fix it with a patch like the one I'm attaching.
Comment 1 Darin Adler 2001-04-12 20:35:53 UTC
Created attachment 465 [details] [review]
patch to use __const__ instead of const
Comment 2 Darin Adler 2001-04-12 20:44:26 UTC
Created attachment 466 [details] [review]
patch again (minus extra stuff I accidentally included in the other one)
Comment 3 Darin Adler 2001-04-12 20:45:52 UTC
Created attachment 467 [details] [review]
even-better patch, please ignore the previous two