add a hack for visual studio, fixing PR7796

llvm-svn: 110161
This commit is contained in:
Chris Lattner 2010-08-03 22:13:56 +00:00
parent fee57bb464
commit 38321174e0
1 changed files with 1 additions and 0 deletions

View 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)