From 2d321fa0627caa62272fcff8fb5303f1a5cbce39 Mon Sep 17 00:00:00 2001 From: nsz Date: Sun, 21 Oct 2012 02:31:04 +0200 Subject: [PATCH] complex: make _Complex_I work with gcc -std=c99 -pedantic-errors --- include/complex.h | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.25.1