This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/42753] _Complex_I is reported as undeclared. Code builds with Sun compiler.
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2010 11:52:47 -0000
- Subject: [Bug target/42753] _Complex_I is reported as undeclared. Code builds with Sun compiler.
- References: <bug-42753-16025@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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