[cfe-commits] r60355 - /cfe/trunk/lib/Headers/stddef.h

Douglas Gregor doug.gregor at gmail.com
Mon Dec 1 09:21:29 PST 2008


Author: dgregor
Date: Mon Dec  1 11:20:57 2008
New Revision: 60355

URL: http://llvm.org/viewvc/llvm-project?rev=60355&view=rev
Log:
Define NULL to __null in C++, so that it's guaranteed to have the same size as a pointer

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=60355&r1=60354&r2=60355&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/stddef.h (original)
+++ cfe/trunk/lib/Headers/stddef.h Mon Dec  1 11:20:57 2008
@@ -33,7 +33,7 @@
 #endif
 
 #ifdef __cplusplus
-#define NULL (0)
+#define NULL __null
 #else
 #define NULL ((void*)0)
 #endif





More information about the cfe-commits mailing list