[lib/Headers] Define NULL as __DARWIN_NULL when on __APPLE__.

This makes it identical with the system definition.

llvm-svn: 178110
This commit is contained in:
Argyrios Kyrtzidis 2013-03-27 01:25:37 +00:00
parent 3a9c42c423
commit 0909d3c5ed
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ typedef __WCHAR_TYPE__ wchar_t;
#endif
#undef NULL
#ifdef __cplusplus
#if defined(__APPLE__) && defined(__DARWIN_NULL)
# define NULL __DARWIN_NULL
#elif defined(__cplusplus)
# if !defined(__MINGW32__) && !defined(_MSC_VER)
# define NULL __null
# else