r178181 - Revert "[lib/Headers] Define NULL as __DARWIN_NULL when on __APPLE__."
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Mar 27 14:22:45 PDT 2013
Author: akirtzidis
Date: Wed Mar 27 16:22:45 2013
New Revision: 178181
URL: http://llvm.org/viewvc/llvm-project?rev=178181&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Headers/stddef.h
Modified: cfe/trunk/lib/Headers/stddef.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/stddef.h?rev=178181&r1=178180&r2=178181&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/stddef.h (original)
+++ cfe/trunk/lib/Headers/stddef.h Wed Mar 27 16:22:45 2013
@@ -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
More information about the cfe-commits
mailing list