From f50caa81cf43d100695dc588c6686d28c7da08f3 Mon Sep 17 00:00:00 2001 From: stefanf Date: Fri, 3 Sep 2004 23:31:28 +0000 Subject: Use the keyword '_Complex' rather than the macro 'complex' since applications are allowed to undefine the latter. --- include/tgmath.h | 8 ++++---- 1 file 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), \ -- cgit v1.1