[git commit master 1/1] make it possible to compile with -std=gnu99/c99 and use extern inlines

Peter S. Mazinger ps.m at gmx.net
Thu Mar 3 17:22:53 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=587d7092180a5f2053906b87ea2b25b2bf6b34c6
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

When compiled with -std=gnu99/c99 __GNUC_GNU_INLINE__ is not defined

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 include/features.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/features.h b/include/features.h
index 1d47b56..f4d70d7 100644
--- a/include/features.h
+++ b/include/features.h
@@ -433,7 +433,7 @@ uClibc was built without large file support enabled.
  */
 #if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
     && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \
-    && (defined __extern_inline || defined __GNUC_GNU_INLINE__)
+    && (defined __extern_inline || defined __GNUC_GNU_INLINE__ || defined __GNUC_STDC_INLINE__)
 # define __USE_EXTERN_INLINES	1
 #endif
 
-- 
1.7.3.4



More information about the uClibc-cvs mailing list