fixed bug #47625 (Error in compilation of C++ source using netifapi macros) by changing NULL define for __cplusplus

This commit is contained in:
sg 2016-04-05 21:04:06 +02:00
parent 0731eda0b3
commit 03e9c88488

View File

@ -53,8 +53,12 @@ extern "C" {
#define LWIP_ARRAYSIZE(x) (sizeof(x)/sizeof((x)[0]))
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif
/* Endianess-optimized shifting of two u8_t to create one u16_t */
#if BYTE_ORDER == LITTLE_ENDIAN