Code: Select all
#ifdef __cplusplus
extern "C"
{
#endif
/* standard NULL declaration */
#define NULL 0 // <- This happens unconditionally!
#ifdef __cplusplus
}
#else
/* standard NULL declaration */
#define NULL (void*)0
#endif
I would have expected it to be more like:
Code: Select all
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void*)0)
#endif