<div dir="ltr">Can you instead always proxy-include windows.h? Force all LLVM inclusions of windows.h to go through lib/Support/Windows/WindowsSupport.h (move it to include/ instead) and add NOMINMAX. It already has WIN32_LEAN_AND_MEAN, you could even pile on with VC_EXTRALEAN.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 16, 2015 at 4:15 PM, Reid Kleckner via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Fri, Oct 16, 2015 at 2:55 PM, David Blaikie via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ah, I see this was addressed in <span style="font-family:monospace">250386 - though might be nice to address across the whole project rather than this particular inclusion. Though maybe we've few enough inclusions that it's not too bad.</span></div></blockquote><div><br></div></span><div>I'd rather not have an extra flag to every compilation just to handle the odd inclusion of windows.h. Most of LLVM should not be including system-specific headers, and the parts that do should be small.</div></div></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>