From: Stan Shebs Date: Fri, 19 Jan 2018 20:25:34 +0000 (-0800) Subject: Disallow extern inline if clang X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64182edc575adc4d0591126c67e1673946b1617d;p=thirdparty%2Fglibc.git Disallow extern inline if clang --- diff --git a/include/features.h b/include/features.h index 0e96de030fa..1072952b62c 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. contains `#define __stub_FUNCTION' when FUNCTION is a stub