Dealing with compilers that pretend to be GCC

Ludovic Courtès ludovic.courtes@inria.fr
Fri Jan 20 23:47:00 GMT 2012


Hi,

James Dennett <james.dennett@gmail.com> skribis:

> If there were a defined way to test for extensions from within C (or
> C++), then this problem would be much reduced. Clang has something of
> a framework to query support for different features, and I drafted a
> proposal for something similar that would work across different
> compilers (with the intension of tracking C++11 features as they roll
> out), but that proposal went nowhere (I was too late for it to be
> useful for C++11 in any case).

It would still be useful, though, and a net improvement over the
catch-all __GNUC__.

Ludo’.



More information about the Gcc mailing list