This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773

--- Comment #106 from Marc Glisse <marc.glisse at normalesup dot org> 2011-08-03 21:51:53 UTC ---
(In reply to comment #96)
> I could trace this to g++ defining __STRICT_ANSI__ for
> -std=c++98/c++0x.  <sys/feature_tests.h> defines _STRICT_STDC in this
> case, which hides the !_REENTRANT && !_LP64 && !_STRICT_STDC getc
> definition in <iso/stdio_iso.h>.

If you don't like fixincludes, we could also make g++ never define
__STRICT_ANSI__ on Solaris. After all, it already unconditionally defines
__STDC_VERSION__=199901L, _XOPEN_SOURCE=600 and __EXTENSIONS__...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]