complex: make _Complex_I work with gcc -std=c99 -pedantic-errors
This commit is contained in:
parent
0a1c2c1c17
commit
2d321fa062
1 changed files with 4 additions and 0 deletions
|
|
@ -6,7 +6,11 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define complex _Complex
|
#define complex _Complex
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define _Complex_I (__extension__ 1.0fi)
|
||||||
|
#else
|
||||||
#define _Complex_I 1.0fi
|
#define _Complex_I 1.0fi
|
||||||
|
#endif
|
||||||
#define I _Complex_I
|
#define I _Complex_I
|
||||||
|
|
||||||
double complex cacos(double complex);
|
double complex cacos(double complex);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue