mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
reapply inlining fix from r6333 to fix: Bug 522292 - Gives warnings in
2008-03-31 10:39:17 Tim Janik <timj@imendio.com> * glib/gutils.h: reapply inlining fix from r6333 to fix: Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode and again: Bug 315437 - extern inline -> static inline svn path=/trunk/; revision=6789
This commit is contained in:
committed by
Tim Janik
parent
3e877f984e
commit
e4b7751f44
@@ -101,11 +101,7 @@ G_BEGIN_DECLS
|
||||
# define G_INLINE_FUNC
|
||||
# undef G_CAN_INLINE
|
||||
#elif defined (__GNUC__)
|
||||
# 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
|
||||
# endif
|
||||
# define G_INLINE_FUNC static __inline __attribute__ ((unused))
|
||||
#elif defined (G_CAN_INLINE)
|
||||
# define G_INLINE_FUNC static inline
|
||||
#else /* can't inline */
|
||||
|
Reference in New Issue
Block a user