<div dir="ltr">Hello,<div><div><div dir="ltr"><div dir="ltr"><p>I'm using clang as a library, and am trying to compile a program that uses Windows.h. I've gone and set the following LangOptions:</p><p>        lo.MSVCCompat = true;</p><p>        lo.MSCompatibilityVersion = clang::LangOptions::MSVC2013;</p><p>        lo.MicrosoftExt = true;</p><p>        lo.AsmBlocks = true;</p><p>        lo.DelayedTemplateParsing = true;<br><br>This fixed some issues with AsmBlocks and the IUnknown issue (hence the delayed template parsing), but Windows.h still doesn't compile.</p><p>So, I tried setting __STDC__ after reading some things online (Microsoft made a member of a type called bool ... yeah, <a href="http://lists.llvm.org/pipermail/cfe-dev/2010-August/010174.html">http://lists.llvm.org/pipermail/cfe-dev/2010-August/010174.html</a>), however this results in yet more issues and it's not clear if my setting __STDC__ caused this.</p><p>My question is, am I missing some key step in enabling VC++ compatibility?</p><p>Thank you in advance,</p><p>Joshua</p><p><br></p><p dir="ltr"><br></p></div></div></div>
</div></div>