summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-01 17:20:57 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-01 17:20:57 +0000
commitf7ab50df290663597d02b8a5668866bfb57fc989 (patch)
tree2a0f4d444e0dad72fc876badfdc244de1405c81e /clang/lib/Headers
parent001181731bdf1ec43218c96294aae3541adadd89 (diff)
downloadbcm5719-llvm-f7ab50df290663597d02b8a5668866bfb57fc989.tar.gz
bcm5719-llvm-f7ab50df290663597d02b8a5668866bfb57fc989.zip
Define NULL to __null in C++, so that it's guaranteed to have the same size as a pointer
llvm-svn: 60355
Diffstat (limited to 'clang/lib/Headers')
-rw-r--r--clang/lib/Headers/stddef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Headers/stddef.h b/clang/lib/Headers/stddef.h
index d5f4eb9c7c2..2c84b4b066c 100644
--- a/clang/lib/Headers/stddef.h
+++ b/clang/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
OpenPOWER on IntegriCloud