lwip: prevent pointer-compare compilation warnings

This commit is contained in:
Christian Helmuth 2019-11-11 14:30:46 +01:00
parent b2a7ac2996
commit a3cb9d9897
1 changed files with 5 additions and 1 deletions

View File

@ -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 */