[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
marc dot glisse at normalesup dot org
gcc-bugzilla@gcc.gnu.org
Tue May 9 14:24:00 GMT 2006
------- Comment #56 from marc dot glisse at normalesup dot org 2006-05-09 14:24 -------
(In reply to comment #30)
> Defines __cplusplus to 199711L and overrides it in c++config.h for solaris 8
Out of curiosity, why not deal with __cplusplus the same way as __STDC__ (0 for
standard headers and 1 elsewhere IIRC) instead, or even defining it to 1
directly for this platform? If I include stdlib.h (not cstdlib), I won't
include c++config.h first, and it should cause trouble with this approach.
(although I don't like the approach, which considers as broken the only
platform that has correct headers, but that is a different issue)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
More information about the Gcc-bugs
mailing list