[cfe-dev] CLang compiling windows.h from the Windows SDK
Michael Spencer
bigcheesegs at gmail.com
Sun Aug 8 20:09:36 PDT 2010
On Sun, Aug 8, 2010 at 9:40 PM, Clark Gaebel <cg.wowus.cg at gmail.com> wrote:
> Shouldn't it just be enabled when the ms-extensions flag is present?
> Since IUnknown is used by windows anyways, it's kinda a reserved word. I
> don't really think it should be yet another compiler flag.
I agree that it should go with -fms-extensions. It's just a forward
declaration so it shouldn't really be an issue even if someone did
define it as something else.
> On 08/08/10 21:21, Sean Hunt wrote:
>> On 08/08/2010 06:02 PM, Clark Gaebel wrote:
>>> Yes, but clang still fails without it, meaning it doesn't support
>>> Windows out of the box. Is there a way to force the declaration in clang
>>> itself?
>> We should be able to do so pretty easily. We should also add an option
>> to disable this, just in case someone was using IUnknown for something
>> different.
>>
>> Does anyone take issue with this?
>>
>> Sean
>
> --
> Regards,
> -- Clark
>
More information about the cfe-dev
mailing list