summaryrefslogtreecommitdiff
path: root/pfinet/linux-src/include/linux/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet/linux-src/include/linux/stddef.h')
-rw-r--r--pfinet/linux-src/include/linux/stddef.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pfinet/linux-src/include/linux/stddef.h b/pfinet/linux-src/include/linux/stddef.h
index 39da8088..dfa23221 100644
--- a/pfinet/linux-src/include/linux/stddef.h
+++ b/pfinet/linux-src/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)