From 80f3e97ca923ff5be7ba2642f35c053da72bb6c9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 24 Mar 2013 00:17:42 +0100 Subject: [PATCH] software/stddef.h: c++ compat for NULL --- software/include/base/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/software/include/base/stddef.h b/software/include/base/stddef.h index 331f39e7..6f00c4fa 100644 --- a/software/include/base/stddef.h +++ b/software/include/base/stddef.h @@ -1,7 +1,11 @@ #ifndef __STDDEF_H #define __STDDEF_H +#ifdef __cplusplus +#define NULL 0 +#else #define NULL ((void *)0) +#endif typedef unsigned long size_t; typedef long ptrdiff_t; -- 2.30.2