[Bug target/42753] _Complex_I is reported as undeclared. Code builds with Sun compiler.

jsm28 at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 15 11:52:00 GMT 2010



------- Comment #6 from jsm28 at gcc dot gnu dot org  2010-01-15 11:52 -------
For reference of people without Solaris headers to hand, the code needing
fixing by fixincludes is:

/*
 * Compilation environments for Solaris must provide the _Imaginary datatype
 * and the compiler intrinsics _Complex_I and _Imaginary_I
 */
#define _Complex_I      _Complex_I
#define complex         _Complex
#define _Imaginary_I    _Imaginary_I
#define imaginary       _Imaginary
#undef  I
#define I               _Imaginary_I

Note there are some TABs there in the original header.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42753



More information about the Gcc-bugs mailing list