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__...