mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Add a version of G_INLINE_FUNC for __GNUC__ && __GNUC_STDC_INLINE__, patch
2008-03-03 Matthias Clasen <mclasen@redhat.com> * glib/gutils.h: Add a version of G_INLINE_FUNC for __GNUC__ && __GNUC_STDC_INLINE__, patch by Jakub Jelinek svn path=/trunk/; revision=6616
This commit is contained in:
parent
e826c6710a
commit
f3a2e2143f
@ -1,3 +1,8 @@
|
||||
2008-03-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gutils.h: Add a version of G_INLINE_FUNC for
|
||||
__GNUC__ && __GNUC_STDC_INLINE__, patch by Jakub Jelinek
|
||||
|
||||
2008-03-03 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gspawn-win32.c (read_helper_report): Must set the GError
|
||||
|
@ -97,7 +97,11 @@ G_BEGIN_DECLS
|
||||
# define G_INLINE_FUNC
|
||||
# undef G_CAN_INLINE
|
||||
#elif defined (__GNUC__)
|
||||
# define G_INLINE_FUNC static __inline __attribute__ ((unused))
|
||||
# ifdef __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 */
|
||||
|
Loading…
Reference in New Issue
Block a user