This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2007 16:54:17 -0000
- Subject: [Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
- References: <bug-1773-1824@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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