diff options
author | Stan Shebs <stanshebs@google.com> | 2018-01-24 12:49:39 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2018-01-24 16:03:40 -0800 |
commit | 2ceff7a1d1e55b6926ea6694c9263c0ea49aa9bb (patch) | |
tree | b558f831bb90fbad7e27cc5487632129e5f9839e | |
parent | 4d954e99e984301fab6890ef9022af0016db39f5 (diff) | |
download | glibc-2ceff7a1d1e55b6926ea6694c9263c0ea49aa9bb.tar.gz glibc-2ceff7a1d1e55b6926ea6694c9263c0ea49aa9bb.tar.xz glibc-2ceff7a1d1e55b6926ea6694c9263c0ea49aa9bb.zip |
Put CMPLX* macros under ISO C11
-rw-r--r-- | math/complex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/math/complex.h b/math/complex.h index 50701f6115..a7c911dfdb 100644 --- a/math/complex.h +++ b/math/complex.h @@ -52,7 +52,7 @@ __BEGIN_DECLS #undef I #define I _Complex_I -#if defined(__clang__) +#if defined __USE_ISOC11 && defined __clang__ /* Clang casts types to _Complex instead of using __builtin_complex. */ #define __CMPLX(x, y, t) (+(_Complex t){(t)(x), (t)(y)}) #define CMPLX(x, y) __CMPLX(x, y, double) |