[cfe-commits] [patch] Let NULL and MSVC headers coexist

Nico Weber thakis at chromium.org
Tue Apr 24 13:49:12 PDT 2012


Hi,

the attached patch fixes both issues mentioned in
http://llvm.org/PR12146 . Like suggested by Eli in that bug, it does
this by defining NULL to 0 instead of __null on windows. I think it
would be nice to have a __clang_null, but this patch fixes the
immediate issues I'm seeing without me having to argue with Eli :-)
Maybe I'll do that in a follow-up patch.

Ok?

Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-ms-null.patch
Type: application/octet-stream
Size: 1756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120424/73851e6e/attachment.obj>


More information about the cfe-commits mailing list