Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 102923 Details for
Bug 156475
dev-libs/glib and extern inlines w/ gcc-4.3 [patch]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dev-libs/glib/files/glib-2.12.4-extern-inlines.patch
glib-2.12.4-extern-inlines.patch (text/plain), 1.25 KB, created by
Kent Fredric (IRC: kent\n) (RETIRED)
on 2006-11-28 08:27:09 UTC
(
hide
)
Description:
dev-libs/glib/files/glib-2.12.4-extern-inlines.patch
Filename:
MIME Type:
Creator:
Kent Fredric (IRC: kent\n) (RETIRED)
Created:
2006-11-28 08:27:09 UTC
Size:
1.25 KB
patch
obsolete
>--- dev-libs/glib-2.12.4-r1/work/glib-2.12.4/glib/gutils.h 2006-01-24 04:51:06.000000000 +1300 >+++ dev-libs/glib-2.12.4-r1/work/glib-2.12.4/glib/gutils.h 2006-11-29 04:56:19.000000000 +1300 >@@ -69,6 +69,20 @@ > # endif /* va_list is a pointer */ > #endif /* !G_VA_COPY */ > >+/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 >+ * inline semantics. */ >+#if __GNUC_PREREQ (4,3) && defined (__STDC_VERSION__) \ >+ && __STDC_VERSION__ >= 199901L >+# define __extern_inline extern __inline __attribute__ ((__gnu_inline__)) >+# define __extern_always_inline \ >+ extern __always_inline __inline __attribute__ ((__gnu_inline__)) >+#else >+# define __extern_inline extern __inline >+# define __extern_always_inline extern __always_inline >+#endif >+ >+ >+ > /* inlining hassle. for compilers that don't allow the `inline' keyword, > * mostly because of strict ANSI C compliance or dumbness, we try to fall > * back to either `__inline__' or `__inline'. >@@ -96,8 +110,8 @@ > #ifdef G_IMPLEMENT_INLINES > # define G_INLINE_FUNC > # undef G_CAN_INLINE >-#elif defined (__GNUC__) >-# define G_INLINE_FUNC extern inline >+#elif defined (__GNUC__) >+# define G_INLINE_FUNC __extern_inline > #elif defined (G_CAN_INLINE) > # define G_INLINE_FUNC static inline > #else /* can't inline */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 156475
:
102923
|
102924
|
136465