This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dealing with compilers that pretend to be GCC
2012/1/20 Ludovic Courtès:
>
> Yeah, but it’s a shame that those compilers define __GNUC__ without
> supporting 100% of the GNU C extensions. ?With this approach, you would
> also need to add !defined for Clang, PGI, and probably others.
May I politely suggest that this is the wrong place to complain about
other compilers pretending to be GCC :)
If GCC added a __REALLY_GNUC__ macro the other compilers would define
it, for exactly the same reasons they define __GNUC__