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-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=2d321fa0627caa62272fcff8fb5303f1a5cbce39 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);