diff options
author | Stan Shebs <stanshebs@google.com> | 2018-01-24 12:49:39 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2019-04-29 17:26:18 -0700 |
commit | 60c5087acb124f57b6535fe19655229e66d669c3 (patch) | |
tree | 1bece4bbdf34cf2ddd84cd140cb2eb254405f4a3 | |
parent | 7220c4d3934c92d753d881d36ec9bcde07e76b27 (diff) | |
download | glibc-60c5087acb124f57b6535fe19655229e66d669c3.tar.gz glibc-60c5087acb124f57b6535fe19655229e66d669c3.tar.xz glibc-60c5087acb124f57b6535fe19655229e66d669c3.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 3e4ea051ec..870c0689b0 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) |