diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-01 17:20:57 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-01 17:20:57 +0000 |
commit | 28d6cba4c472fca54c77cba34c15802a634984af (patch) | |
tree | a8a8d99d26a53ad23862c5fe2957bb0813eb40ab | |
parent | 4fdfb0965b396f2778091f7e6c051d17ff9791ba (diff) |
Define NULL to __null in C++, so that it's guaranteed to have the same size as a pointer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60355 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Headers/stddef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Headers/stddef.h b/lib/Headers/stddef.h index d5f4eb9c7c..2c84b4b066 100644 --- a/lib/Headers/stddef.h +++ b/lib/Headers/stddef.h @@ -33,7 +33,7 @@ typedef __typeof__(*L"") wchar_t; #endif #ifdef __cplusplus -#define NULL (0) +#define NULL __null #else #define NULL ((void*)0) #endif |