Dealing with compilers that pretend to be GCC
Jonathan Wakely
jwakely.gcc@gmail.com
Fri Jan 20 23:42:00 GMT 2012
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__
More information about the Gcc
mailing list