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=f555d1a9b769e1cef90e025367d90112f6361c04;p=thirdparty%2Fglibc.git Disallow extern inline if clang --- diff --git a/include/features.h b/include/features.h index 137a90b4055..28861e28902 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