GNOME Bugzilla – Bug 149907
Dubious "extern"
Last modified: 2011-02-18 16:14:20 UTC
When compiling gutils.c, G_INLINE_FUNC is "extern" which leads to gutils.h expanding to several "extern" (but not "inline") functions that have definitions. I don't think that is kosher. Why isn't G_INLINE_FUNC just empty? ... extern gint g_bit_nth_msf (gulong mask, gint nth_bit) { ... } ...
2005-01-04 Matthias Clasen <mclasen@redhat.com> Fix the inlining magic. (#157536, Jens Hatlak, and #149907, Morten Welinder) * configure.in: Define G_CAN_INLINE in glibconfig.h * glib/gutils.h: Streamline the inlining magic a bit, don't use extern when implementing the non-inlined version.