about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-01-19 12:25:34 -0800
committerStan Shebs <stanshebs@google.com>2018-01-24 16:03:39 -0800
commit64182edc575adc4d0591126c67e1673946b1617d (patch)
tree459f8f8cc4ed476671b13ea254c44c6b5b2812d9
parentb5fbe0360190a28d4230435e34422ebaade4fd4b (diff)
downloadglibc-64182edc575adc4d0591126c67e1673946b1617d.tar.gz
glibc-64182edc575adc4d0591126c67e1673946b1617d.tar.xz
glibc-64182edc575adc4d0591126c67e1673946b1617d.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 0e96de030f..1072952b62 100644
--- a/include/features.h
+++ b/include/features.h
@@ -440,11 +440,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