patch-2.3.40 linux/include/linux/stddef.h
Next file: linux/include/linux/string.h
Previous file: linux/include/linux/spinlock.h
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Thu Jan 20 10:48:35 2000
- Orig file:
v2.3.39/linux/include/linux/stddef.h
- Orig date:
Sat Nov 23 02:29:04 1996
diff -u --recursive --new-file v2.3.39/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)