]> granicus.if.org Git - clang/commitdiff
add a hack for visual studio, fixing PR7796
authorChris Lattner <sabre@nondot.org>
Tue, 3 Aug 2010 22:13:56 +0000 (22:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Aug 2010 22:13:56 +0000 (22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110161 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/stddef.h

index b1d0d528746d1554f28e860cd380b43c1f8da84d..fdd48159bab6f5204ad9f15f62a900aaf5897e44 100644 (file)
@@ -40,6 +40,7 @@ typedef __typeof__(*L"") wchar_t;
 
 #undef NULL
 #ifdef __cplusplus
+#undef __null  // VC++ hack.
 #define NULL __null
 #else
 #define NULL ((void*)0)