about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-18 23:16:34 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-18 23:16:34 +0000
commiteedbbe588f893e8bd93e65617d3fd98e172a3569 (patch)
treea5ab43d9c7d9e7af6f409d1873801861f9cbda36 /include
parentc82e61161c23c61763d751c39ea6096f025e32ec (diff)
downloadglibc-eedbbe588f893e8bd93e65617d3fd98e172a3569.tar.gz
glibc-eedbbe588f893e8bd93e65617d3fd98e172a3569.tar.xz
glibc-eedbbe588f893e8bd93e65617d3fd98e172a3569.zip
Define __USE_EXTERN_INLINES for recent enough gcc.
Diffstat (limited to 'include')
-rw-r--r--include/features.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/features.h b/include/features.h
index 935a113a3c..8cfc990f69 100644
--- a/include/features.h
+++ b/include/features.h
@@ -248,6 +248,12 @@
 #  define __USE_LARGEFILE64
 # endif
 
+#endif	/* !ASSEMBLER */
+
+/* Decide whether we can define 'extern inline' functions in headers.  */
+#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7)\
+    && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__
+# define __USE_EXTERN_INLINES	1
 #endif
 
 /* This is here only because every header file already includes this one.  */