mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Check Clang 12 for __builtin_complex
Since __builtin_complex was added to Clang 12, support __builtin_complex for Clang 12. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
a0704d9fc6
commit
6d9d7865d0
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ __BEGIN_DECLS
|
|||
#undef I
|
||||
#define I _Complex_I
|
||||
|
||||
#if defined __USE_ISOC11 && __GNUC_PREREQ (4, 7)
|
||||
#if defined __USE_ISOC11 \
|
||||
&& (__GNUC_PREREQ (4, 7) || __glibc_clang_prereq (12, 0))
|
||||
/* Macros to expand into expression of specified complex type. */
|
||||
# define CMPLX(x, y) __builtin_complex ((double) (x), (double) (y))
|
||||
# define CMPLXF(x, y) __builtin_complex ((float) (x), (float) (y))
|
||||
|
|
Loading…
Add table
Reference in a new issue