From 2ceff7a1d1e55b6926ea6694c9263c0ea49aa9bb Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 24 Jan 2018 12:49:39 -0800 Subject: [PATCH] Put CMPLX* macros under ISO C11 --- math/complex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/complex.h b/math/complex.h index 50701f6115f..a7c911dfdb5 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) -- 2.47.2