]> granicus.if.org Git - clang/commitdiff
Revert "[lib/Headers] Define NULL as __DARWIN_NULL when on __APPLE__."
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 27 Mar 2013 21:22:45 +0000 (21:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 27 Mar 2013 21:22:45 +0000 (21:22 +0000)
Per feedback by Doug, we should avoid platform-specific implementations
in lib/Headers as much as possible.

This reverts commit r178110.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178181 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/stddef.h

index a8d6bf414886aecb2ea53639234690d17d5643ee..52962248f67f5810f5ae49fd007a8e1bd53e0332 100644 (file)
@@ -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