]> granicus.if.org Git - clang/commitdiff
Define NULL to __null in C++, so that it's guaranteed to have the same size as a...
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Dec 2008 17:20:57 +0000 (17:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Dec 2008 17:20:57 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/stddef.h

index d5f4eb9c7c29e041099f70e6edb5ae4d6a0319e2..2c84b4b066c950c8478b0a7852cb2f0d9db99314 100644 (file)
@@ -33,7 +33,7 @@ typedef __typeof__(*L"") wchar_t;
 #endif
 
 #ifdef __cplusplus
-#define NULL (0)
+#define NULL __null
 #else
 #define NULL ((void*)0)
 #endif