diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-18 18:58:34 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-21 05:24:07 +0800 |
commit | 034cd675286db07110a773fdb6a857285485d2d4 (patch) | |
tree | 7c7d90d534fae490f07c2091e8da69340b9b1073 /include/tgmath.h | |
parent | 6025b399c735d3d9f27472b11fad2cab4f62aeb5 (diff) | |
download | glibc-034cd675286db07110a773fdb6a857285485d2d4.zip glibc-034cd675286db07110a773fdb6a857285485d2d4.tar.gz glibc-034cd675286db07110a773fdb6a857285485d2d4.tar.bz2 |
Don't use glibc <tgmath.h> when testing with Clang
Clang has its own <tgmath.h> and doesn't use <tgmath.h> from glibc. Pass
"-I." to compiler only if $($(<F)-no-include-dot) are undefined. Define
it to yes for tgmath tests when testing with Clang.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'include/tgmath.h')
-rw-r--r-- | include/tgmath.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/tgmath.h b/include/tgmath.h index 3a2c4a2..1e81bcb 100644 --- a/include/tgmath.h +++ b/include/tgmath.h @@ -1 +1,7 @@ -#include <math/tgmath.h> +/* NB: Clang has its own <tgmath.h> and doesn't use <tgmath.h> from + glibc. */ +#if defined _ISOMAC && defined __clang__ +# include_next <tgmath.h> +#else +# include <math/tgmath.h> +#endif |