On May 1, 2011, at 11:30 PM, Jean-Daniel Dupas wrote:

>> 
>> I agree.  We should also have a __has_feature(has_extension) of course, and 
>> the new goodness should be documented in the language extensions guide.
>> 
> 
> Is this really needed ? We can already test for has_extension availability 
> using ifdef.
> #ifndef __has_extension         // Optional of course.
>   #define __has_extension(x) 0  // Compatibility with non-clang compilers.
> #endif

Ah, great point.  This is even better.  Nope, not needed.

-Chris

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to