glib r6734 - in branches/glib-2-16: . glib



Author: sdroege
Date: Tue Mar 18 20:10:28 2008
New Revision: 6734
URL: http://svn.gnome.org/viewvc/glib?rev=6734&view=rev

Log:
Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
* glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining
if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In
gcc version prior to 4.3 no correct C99-inline was implemented which
has semantic differences to GNU inline.


Modified:
   branches/glib-2-16/ChangeLog
   branches/glib-2-16/glib/gutils.h

Modified: branches/glib-2-16/glib/gutils.h
==============================================================================
--- branches/glib-2-16/glib/gutils.h	(original)
+++ branches/glib-2-16/glib/gutils.h	Tue Mar 18 20:10:28 2008
@@ -97,7 +97,7 @@
 #  define G_INLINE_FUNC
 #  undef  G_CAN_INLINE
 #elif defined (__GNUC__) 
-#  ifdef __GNUC_STDC_INLINE__
+#  if defined (__GNUC_STDC_INLINE__) || defined (__GNUC_GNU_INLINE__)
 #   define G_INLINE_FUNC extern inline __attribute__ ((__gnu_inline__))
 #  else
 #   define G_INLINE_FUNC extern inline



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]