diff options
author | Szabolcs Nagy <nsz@port70.net> | 2012-12-11 22:44:36 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2012-12-11 22:44:36 +0100 |
commit | faea4c9937d36b17e53fdc7d5a254d7e936e1755 (patch) | |
tree | d6da1012bfd1622c9d2c4c9d0e4f0ee85ced7d5f | |
parent | bcc20d2b94e2c6649597d552b94718197be0674f (diff) | |
download | musl-faea4c9937d36b17e53fdc7d5a254d7e936e1755.tar.gz musl-faea4c9937d36b17e53fdc7d5a254d7e936e1755.tar.bz2 musl-faea4c9937d36b17e53fdc7d5a254d7e936e1755.tar.xz musl-faea4c9937d36b17e53fdc7d5a254d7e936e1755.zip |
make CMPLX macros available in complex.h in non-c11 mode as well
-rw-r--r-- | include/complex.h | 2 | ||||
-rw-r--r-- | src/internal/libm.h | 8 |
2 files changed, 0 insertions, 10 deletions
diff --git a/include/complex.h b/include/complex.h index 8206e026..13a45c57 100644 --- a/include/complex.h +++ b/include/complex.h @@ -115,11 +115,9 @@ long double creall(long double complex); #define __CMPLX(x, y, t) \ ((union { _Complex t __z; t __xy[2]; }){.__xy = {(x),(y)}}.__z) -#if __STDC_VERSION__ >= 201112L #define CMPLX(x, y) __CMPLX(x, y, double) #define CMPLXF(x, y) __CMPLX(x, y, float) #define CMPLXL(x, y) __CMPLX(x, y, long double) -#endif #ifdef __cplusplus } diff --git a/src/internal/libm.h b/src/internal/libm.h index 46c4b564..64cc8388 100644 --- a/src/internal/libm.h +++ b/src/internal/libm.h @@ -168,12 +168,4 @@ long double __p1evll(long double, const long double *, int); #define STRICT_ASSIGN(type, lval, rval) ((lval) = (type)(rval)) #endif -/* complex */ - -#ifndef CMPLX -#define CMPLX(x, y) __CMPLX(x, y, double) -#define CMPLXF(x, y) __CMPLX(x, y, float) -#define CMPLXL(x, y) __CMPLX(x, y, long double) -#endif - #endif |