From: nsz Date: Sun, 21 Oct 2012 00:31:04 +0000 (+0200) Subject: complex: make _Complex_I work with gcc -std=c99 -pedantic-errors X-Git-Tag: v0.9.7~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d321fa0627caa62272fcff8fb5303f1a5cbce39;p=oweals%2Fmusl.git complex: make _Complex_I work with gcc -std=c99 -pedantic-errors --- diff --git a/include/complex.h b/include/complex.h index 436f32f4..b4bcb22e 100644 --- a/include/complex.h +++ b/include/complex.h @@ -6,7 +6,11 @@ extern "C" { #endif #define complex _Complex +#ifdef __GNUC__ +#define _Complex_I (__extension__ 1.0fi) +#else #define _Complex_I 1.0fi +#endif #define I _Complex_I double complex cacos(double complex);