]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Disallow extern inline if clang
authorStan Shebs <stanshebs@google.com>
Fri, 19 Jan 2018 20:25:34 +0000 (12:25 -0800)
committerStan Shebs <stanshebs@google.com>
Thu, 25 Jan 2018 00:03:39 +0000 (16:03 -0800)
include/features.h

index 0e96de030fa2cb80d41094944f162462215e271e..1072952b62c729ba15cb0e745a79ec0a63278cdb 100644 (file)
 /* 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