From 28d6cba4c472fca54c77cba34c15802a634984af Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 1 Dec 2008 17:20:57 +0000 Subject: [PATCH] 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 --- lib/Headers/stddef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0