glib2/glib-gcc43.patch

16 lines
514 B
Diff

--- glib/gutils.h.orig 2007-09-26 14:27:57.000000000 +0200
+++ glib/gutils.h 2007-09-26 14:29:13.000000000 +0200
@@ -97,7 +97,11 @@
# define G_INLINE_FUNC
# undef G_CAN_INLINE
#elif defined (__GNUC__)
-# define G_INLINE_FUNC extern inline
+# if defined (__GNUC_STDC_INLINE__)
+# define G_INLINE_FUNC extern inline __attribute__((__gnu_inline__))
+# else
+# define G_INLINE_FUNC extern inline
+# endif
#elif defined (G_CAN_INLINE)
# define G_INLINE_FUNC static inline
#else /* can't inline */