Actually I needed to apply this patch again yesterday in my local copy, and spent an hour debugging the test case Nico added. VS actually supports calling macros with less parameters than the ones on the declaration with just a warning. Clang will give an error in this case, so I think that's related.<div>

<br></div><div>I didn't spend much more time on it since for the moment that simple patch can get things going in the VS headers.<br><div><br><div class="gmail_quote">On Wed, Dec 12, 2012 at 11:40 PM, Will Wilson <span dir="ltr"><<a href="mailto:will@indefiant.com" target="_blank">will@indefiant.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Joćo,<br><div class="gmail_extra"><br></div><div class="gmail_extra">Re r<span style="font-family:arial,sans-serif;font-size:13px">163022</span>: <span style="font-family:arial,sans-serif;font-size:13px">Emulate MSVC's preprocessor </span><span style="font-family:arial,sans-serif;font-size:13px">macro</span><span style="font-family:arial,sans-serif;font-size:13px"> argument separator behavior by not considering commas from nested </span><span style="font-family:arial,sans-serif;font-size:13px">macro</span><span style="font-family:arial,sans-serif;font-size:13px"> expansions as argument separators. Fixes parsing of </span><span style="font-family:arial,sans-serif;font-size:13px">VS</span><span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">2012 </span><span style="font-family:arial,sans-serif;font-size:13px">headers.</span></div>



<div class="gmail_extra"><br></div><div class="gmail_extra">Did you make any further progress on getting clang compiling against the VS2012 headers? I ask as I'm running into this very issue just now and was rather hoping you might have a solution waiting in the wings ;) If not, I may try and take a look at in in the coming weeks. Any thoughts/patches greatly appreciated!</div>


<span><font color="#888888">
<div class="gmail_extra"><br></div><div class="gmail_extra">- Will.</div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Joćo Matos<br>
</div></div>