From a3cb9d9897b558f367241c271f330cf2d3fb23e3 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Mon, 11 Nov 2019 14:30:46 +0100 Subject: [PATCH] lwip: prevent pointer-compare compilation warnings --- repos/libports/include/lwip/arch/cc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/repos/libports/include/lwip/arch/cc.h b/repos/libports/include/lwip/arch/cc.h index 8b561c7d5..5ab668dd8 100644 --- a/repos/libports/include/lwip/arch/cc.h +++ b/repos/libports/include/lwip/arch/cc.h @@ -53,7 +53,11 @@ typedef int64_t s64_t; typedef uintptr_t mem_ptr_t; #ifndef NULL -#define NULL (uintptr_t)0 +#ifndef __cplusplus +#define NULL ((void *)0) +#else +#define NULL (nullptr) +#endif #endif #endif /* LWIP_NO_STDINT_H */