[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
gdr at cs dot tamu dot edu
gcc-bugzilla@gcc.gnu.org
Wed Mar 28 16:54:00 GMT 2007
------- Comment #62 from gdr at cs dot tamu dot edu 2007-03-28 17:54 -------
Subject: Re: __cplusplus defined to 1, should be 199711L
"bkoz at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| ------- Comment #60 from bkoz at gcc dot gnu dot org 2007-03-28 17:48
-------
|
| Mine.
|
| Current libcpp patch only is:
|
| Index: init.c
| ===================================================================
| --- init.c (revision 123196)
| +++ init.c (working copy)
| @@ -376,7 +376,7 @@
| }
|
| if (CPP_OPTION (pfile, cplusplus))
| - _cpp_define_builtin (pfile, "__cplusplus 1");
| + _cpp_define_builtin (pfile, "__cplusplus 199711L");
| else if (CPP_OPTION (pfile, lang) == CLK_ASM)
| _cpp_define_builtin (pfile, "__ASSEMBLER__ 1");
| else if (CPP_OPTION (pfile, lang) == CLK_STDC94)
Yes, that is correct.
I thought there was an issue with solaris boxes. Was that fixed?
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
More information about the Gcc-bugs
mailing list