glibc/include/tgmath.h
H.J. Lu 034cd67528 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>
2024-12-21 05:24:07 +08:00

7 lines
188 B
C

/* 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