aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/complex.h2
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)