lwip: prevent pointer-compare compilation warnings
This commit is contained in:
parent
b2a7ac2996
commit
a3cb9d9897
|
@ -53,7 +53,11 @@ typedef int64_t s64_t;
|
||||||
typedef uintptr_t mem_ptr_t;
|
typedef uintptr_t mem_ptr_t;
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL (uintptr_t)0
|
#ifndef __cplusplus
|
||||||
|
#define NULL ((void *)0)
|
||||||
|
#else
|
||||||
|
#define NULL (nullptr)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif /* LWIP_NO_STDINT_H */
|
#endif /* LWIP_NO_STDINT_H */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue