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: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2004 18:59:59 -0000
- Subject: [Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
- References: <20010125132600.1773.jens.maurer@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-01-07 18:59 -------
I think that there's a relatively simple solution to this problem: have the C++
front end define __cplusplus to 1, by default, but allow a target configuration
to override that value. That would allow the systems where it works to definine
it to 199711L to work. On other systems, leave it set to 1. Heck, I'll
preapprove a patch to do that.
Yes, it would be nice to take a more elegant approach with Solaris 8. If that
is really the only system where that is a problem, and someone has a pointer to
a description showing what goes wrong there, complete with a test case for me to
play with, we can look at doing something smarter. But, I'm not sure I see the
point in investing a lot of effort to fix something for an already somewhat old
version of the OS.
Benjamin raises other issues, such as definining _USE_GNU, and those are valid,
but orthogonal.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773