summaryrefslogtreecommitdiff
path: root/packages/glib-2.0/glib-2.0-2.14.4/gcc-4.2-inline-fix.patch
blob: ea2b41e900bf8ce545475a9ac05c03211b47d586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: glib-2.12.9/glib/gutils.h
===================================================================
--- glib-2.12.9.orig/glib/gutils.h	2007-10-07 19:13:53.000000000 +0200
+++ glib-2.12.9/glib/gutils.h	2007-10-07 19:15:04.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_GNU_INLINE__)
+#    define G_INLINE_FUNC extern  __attribute__((gnu_inline)) inline
+#  else
+#    define G_INLINE_FUNC extern inline
+#  endif
 #elif defined (G_CAN_INLINE) 
 #  define G_INLINE_FUNC static inline
 #else /* can't inline */