tgmath.h fixes
authornsz <nsz@port70.net>
Mon, 5 Mar 2012 21:25:18 +0000 (22:25 +0100)
committernsz <nsz@port70.net>
Mon, 5 Mar 2012 21:25:18 +0000 (22:25 +0100)
include/tgmath.h

index 08e2028..bdfef62 100644 (file)
@@ -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))