From 95aa0b77f25c863e80a0b3921b2fdc83f97eab21 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 27 Mar 2013 21:22:45 +0000 Subject: [PATCH] Revert "[lib/Headers] Define NULL as __DARWIN_NULL when on __APPLE__." Per feedback by Doug, we should avoid platform-specific implementations in lib/Headers as much as possible. This reverts commit r178110. llvm-svn: 178181 --- clang/lib/Headers/stddef.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clang/lib/Headers/stddef.h b/clang/lib/Headers/stddef.h index a8d6bf414886..52962248f67f 100644 --- a/clang/lib/Headers/stddef.h +++ b/clang/lib/Headers/stddef.h @@ -53,9 +53,7 @@ typedef __WCHAR_TYPE__ wchar_t; #endif #undef NULL -#if defined(__APPLE__) && defined(__DARWIN_NULL) -# define NULL __DARWIN_NULL -#elif defined(__cplusplus) +#ifdef __cplusplus # if !defined(__MINGW32__) && !defined(_MSC_VER) # define NULL __null # else