From: Stan Shebs Date: Wed, 24 Jan 2018 20:49:39 +0000 (-0800) Subject: Put CMPLX* macros under ISO C11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ceff7a1d1e55b6926ea6694c9263c0ea49aa9bb;p=thirdparty%2Fglibc.git Put CMPLX* macros under ISO C11 --- 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)