[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:
parent
3a9c42c423
commit
0909d3c5ed
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue