From e35f7dfb24a5b26679d34698f6f3c8c0207289fe Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 3 Mar 2019 21:21:00 -0500 Subject: add TGCMPLX macro (only used by stuff, but it's a shared file) --- src/math/_tgmath.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/math/_tgmath.h') diff --git a/src/math/_tgmath.h b/src/math/_tgmath.h index 01533baa..fa7ce4b4 100644 --- a/src/math/_tgmath.h +++ b/src/math/_tgmath.h @@ -5,18 +5,22 @@ #ifdef TGSOURCE # if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) +# define TGCMPLX(x,y) CMPLXF(x,y) # define TGFN(x) x##f # define TYPE float # define TGHUGE HUGE_VALF # include TGSOURCE +# undef TGCMPLX # undef TGFN # undef TYPE # undef TGHUGE +# define TGCMPLX(x,y) CMPLXL(x,y) # define TGFN(x) x##l # define TYPE long double # define TGHUGE HUGE_VALL # include TGSOURCE +# undef TGCMPLX # undef TGFN # undef TYPE # undef TGHUGE @@ -24,6 +28,7 @@ #endif +#define TGCMPLX(x,y) CMPLX(x,y) #define TGFN(x) x #define TYPE double #define TGHUGE HUGE_VAL -- cgit v1.2.1