[klibc] [PATCH 1/2] Fix must_inline macro in klibc/compiler.h for gcc-4.3
Jon Ringle
jon at ringle.org
Thu Jul 16 15:38:00 PDT 2009
See http://gcc.gnu.org/gcc-4.3/porting_to.html for details.
Signed-off-by: Jon Ringle <jon at ringle.org>
---
usr/include/klibc/compiler.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/usr/include/klibc/compiler.h b/usr/include/klibc/compiler.h
index 816a4ee..e0da37e 100644
--- a/usr/include/klibc/compiler.h
+++ b/usr/include/klibc/compiler.h
@@ -24,7 +24,11 @@
/* Use "extern inline" even in the gcc3+ case to avoid warnings in ctype.h */
#ifdef __GNUC__
# if __GNUC__ >= 3
-# define __must_inline extern __inline__ __attribute__((always_inline))
+# ifdef __GNUC_STDC_INLINE__
+# define __must_inline extern __inline__ __attribute__((__gnu_inline__))
+# else
+# define __must_inline extern __inline__ __attribute__((__always_inline__))
+# endif
# else
# define __must_inline extern __inline__
# endif
More information about the klibc
mailing list