aboutsummaryrefslogtreecommitdiffstats
path: root/include/tgmath.h
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2004-09-03 23:31:28 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2004-09-03 23:31:28 +0000
commita551dea2a83ca2bd8ecf9bbb6cdf52280a078dcc (patch)
tree30ef7e777707d6ac2d3de823769694ee79cc91df /include/tgmath.h
parent3785db4f85c25af00410d6ad26c714d6b114bdb2 (diff)
downloadsrc-a551dea2a83ca2bd8ecf9bbb6cdf52280a078dcc.tar.gz
src-a551dea2a83ca2bd8ecf9bbb6cdf52280a078dcc.zip
Use the keyword '_Complex' rather than the macro 'complex' since
applications are allowed to undefine the latter.
Notes
Notes: svn path=/head/; revision=134735
Diffstat (limited to 'include/tgmath.h')
-rw-r--r--include/tgmath.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tgmath.h b/include/tgmath.h
index 2dbb8fd1e174..71460adf813d 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), \