This is the mail archive of the gcc@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]

Re: Dealing with compilers that pretend to be GCC


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


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