From 781e3284dddd0d9cc713603f4bd05442df78e09a Mon Sep 17 00:00:00 2001 From: nsz Date: Mon, 5 Mar 2012 22:25:18 +0100 Subject: [PATCH] tgmath.h fixes --- include/tgmath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tgmath.h b/include/tgmath.h index 08e2028..bdfef62 100644 --- a/include/tgmath.h +++ b/include/tgmath.h @@ -67,7 +67,7 @@ tgmath.h is broken: return type is wrong __FLTCX(x) || __FLTCX(y) ? cpowf(x, y) : \ __tg_real_2(pow, x, y) ) -#define __tg_real_complex_fabs(__fun, x) ( \ +#define __tg_real_complex_fabs(x) ( \ __LDBLCX(x) ? cabsl(x) : \ __DBLCX(x) ? cabs(x) : \ __FLTCX(x) ? cabsf(x) : \ @@ -80,7 +80,7 @@ tgmath.h is broken: return type is wrong #define asin(x) __tg_real_complex(asin, (x)) #define asinh(x) __tg_real_complex(asinh, (x)) #define atan(x) __tg_real_complex(atan, (x)) -#define atan2(x) __tg_real_2(atan2, (x), (y)) +#define atan2(x,y) __tg_real_2(atan2, (x), (y)) #define atanh(x) __tg_real_complex(atanh, (x)) #define carg(x) __tg_complex(carg, (x)) #define cbrt(x) __tg_real(cbrt, (x)) -- 2.20.1