From 034cd675286db07110a773fdb6a857285485d2d4 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 18 Dec 2024 18:58:34 +0800 Subject: Don't use glibc when testing with Clang Clang has its own and doesn't use from glibc. Pass "-I." to compiler only if $($( Reviewed-by: Sam James --- include/tgmath.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/tgmath.h b/include/tgmath.h index 3a2c4a2b2d..1e81bcb1af 100644 --- a/include/tgmath.h +++ b/include/tgmath.h @@ -1 +1,7 @@ -#include +/* NB: Clang has its own and doesn't use from + glibc. */ +#if defined _ISOMAC && defined __clang__ +# include_next +#else +# include +#endif -- cgit v1.2.3