[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH 3/6] libc: C++-kompatibles NULL
+ libc: Fuer C++ muss NULL anders definiert werden
Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
src/include/arch/i386/stddef.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/include/arch/i386/stddef.h b/src/include/arch/i386/stddef.h
index 0594c48..13c907d 100644
--- a/src/include/arch/i386/stddef.h
+++ b/src/include/arch/i386/stddef.h
@@ -31,7 +31,11 @@
#include <cdefs.h>
#include <stdint.h>
+#ifndef __cplusplus
#define NULL (void*) 0
+#else
+#define NULL 0
+#endif
typedef __SIZE_TYPE__ size_t;
typedef int ptrdiff_t;
--
1.6.0.2