]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Put CMPLX* macros under ISO C11
authorStan Shebs <stanshebs@google.com>
Wed, 24 Jan 2018 20:49:39 +0000 (12:49 -0800)
committerStan Shebs <stanshebs@google.com>
Tue, 30 Apr 2019 00:26:18 +0000 (17:26 -0700)
math/complex.h

index 3e4ea051ec3864bcd46a8ab9ba59ab27d1d2f28e..870c0689b0aef15c3c92c5d7ed8107db4b4b3629 100644 (file)
@@ -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)