patch-2.2.13 linux/include/linux/stddef.h

Next file: linux/include/linux/string.h
Previous file: linux/include/linux/sem.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.12/linux/include/linux/stddef.h linux/include/linux/stddef.h
@@ -2,7 +2,11 @@
 #define _LINUX_STDDEF_H
 
 #undef NULL
+#if defined(__cplusplus)
+#define NULL 0
+#else
 #define NULL ((void *)0)
+#endif
 
 #undef offsetof
 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)