GNOME Bugzilla – Bug 53162
#include <glib.h> fails if const is defined (by AC_C_CONST)
Last modified: 2011-02-18 15:47:43 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.
Created attachment 465 [details] [review] patch to use __const__ instead of const
Created attachment 466 [details] [review] patch again (minus extra stuff I accidentally included in the other one)
Created attachment 467 [details] [review] even-better patch, please ignore the previous two