summaryrefslogtreecommitdiff
path: root/include/sys/cdefs.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-06 00:04:02 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-06 00:04:02 +0000
commit94fa1bb40fb531a71f7f751afcf96c4ad2f99591 (patch)
tree7a011c480ac25a1fef4b1903707dffad7d124b76 /include/sys/cdefs.h
parent645002f7e8a45e039ab1366304b5013877b84797 (diff)
use the __extern_always_inline define from cdefs.h instead of duplicating gcc version checking in every pt-machine.h header ... while __extern_always_inline should work fine, i think what is intended is __extern_inline ... should double check later
Diffstat (limited to 'include/sys/cdefs.h')
-rw-r--r--include/sys/cdefs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index e2920510a..588c1ebb2 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -298,9 +298,11 @@
#endif
/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
- inline semantics, unless -fgnu89-inline is used. */
+ inline semantics, unless -fgnu89-inline is used.
+ For -std=gnu99, forcing gnu_inline attribute does not change behavior,
+ but may silence spurious warnings (such as in GCC 4.2). */
#if !defined __cplusplus || __GNUC_PREREQ (4,3)
-# if defined __GNUC_STDC_INLINE__ || defined __cplusplus
+# if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ || defined __cplusplus
# define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
# if __GNUC_PREREQ (4,3)
# define __extern_always_inline \