aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-01-19 12:25:34 -0800
committerStan Shebs <stanshebs@google.com>2019-04-26 12:08:19 -0700
commit4b957d975db9202c11354cee740bc9815c928a3a (patch)
tree0a42c2b94ab82ee882d8cbbbecfd3a0dc38bd96d
parent73efc556ac5c130f9fc95df337c48f3a5b555123 (diff)
downloadglibc-4b957d975db9202c11354cee740bc9815c928a3a.tar
glibc-4b957d975db9202c11354cee740bc9815c928a3a.tar.gz
glibc-4b957d975db9202c11354cee740bc9815c928a3a.tar.bz2
glibc-4b957d975db9202c11354cee740bc9815c928a3a.zip
Disallow extern inline if clang
-rw-r--r--include/features.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/features.h b/include/features.h
index ba272078cf..c54a160dff 100644
--- a/include/features.h
+++ b/include/features.h
@@ -462,11 +462,10 @@
/* Decide whether we can define 'extern inline' functions in headers. */
#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \
- && defined __extern_inline
+ && defined __extern_inline && !defined __clang__
# define __USE_EXTERN_INLINES 1
#endif
-
/* This is here only because every header file already includes this one.
Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
<gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub