diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-09-03 23:31:28 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-09-03 23:31:28 +0000 |
commit | f50caa81cf43d100695dc588c6686d28c7da08f3 (patch) | |
tree | 30ef7e777707d6ac2d3de823769694ee79cc91df | |
parent | 8d1cad031ed9b957b7008df3ca2893b57bb71cf3 (diff) | |
download | FreeBSD-src-f50caa81cf43d100695dc588c6686d28c7da08f3.zip FreeBSD-src-f50caa81cf43d100695dc588c6686d28c7da08f3.tar.gz |
Use the keyword '_Complex' rather than the macro 'complex' since
applications are allowed to undefine the latter.
-rw-r--r-- | include/tgmath.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tgmath.h b/include/tgmath.h index 2dbb8fd..71460ad 100644 --- a/include/tgmath.h +++ b/include/tgmath.h @@ -57,14 +57,14 @@ #define __tg_type3(e1, e2, e3, t) \ (__tg_type(e1, t) || __tg_type(e2, t) || __tg_type(e3, t)) #define __tg_type_corr(e1, e2, e3, t) \ - (__tg_type3(e1, e2, e3, t) || __tg_type3(e1, e2, e3, t complex)) + (__tg_type3(e1, e2, e3, t) || __tg_type3(e1, e2, e3, t _Complex)) #define __tg_integer(e1, e2, e3) \ (((__typeof__(e1))1.5 == 1) || ((__typeof__(e2))1.5 == 1) || \ ((__typeof__(e3))1.5 == 1)) #define __tg_is_complex(e1, e2, e3) \ - (__tg_type3(e1, e2, e3, float complex) || \ - __tg_type3(e1, e2, e3, double complex) || \ - __tg_type3(e1, e2, e3, long double complex)) + (__tg_type3(e1, e2, e3, float _Complex) || \ + __tg_type3(e1, e2, e3, double _Complex) || \ + __tg_type3(e1, e2, e3, long double _Complex)) #define __tg_impl_simple(x, y, z, fn, fnf, fnl, ...) \ __builtin_choose_expr(__tg_type_corr(x, y, z, long double), \ |