[cfe-dev] math.h on Windows

Chris Lattner clattner at apple.com
Sun Oct 25 15:51:04 PDT 2009


On Oct 23, 2009, at 11:53 AM, Douglas Gregor wrote:
> On Oct 23, 2009, at 11:48 AM, John Thompson wrote:
>
>> That (__has_include etc.) sounds good.  I'm assuming that is for  
>> use in a #if?
>
> Yes, just like __has_builtin and __has_feature.
>
> It probably makes sense to allow the same forms as include  
> directives, e.g.,
>
> 	__has_include(<stdlib.h>)
> 	__has_include("stdlib.h")
> 	__has_include_next(<stdlib.h>)
> 	__has_include_next("stdlib.h")

This would be really really really cool.  I'd start with the plain  
quoted version, we can deal with the angled string later, but it will  
be trickier.

-Chris




More information about the cfe-dev mailing list