Always take GCC's definition of NULL.
There's a (bad) definition of NULL in <linux/stddef.h>, and this definition of NULL, and the One True definition in the <stddef.h> provided by the compiler. This change at least kills one of the bad duplicates. Killing the <linux/stddef.h> one is harder, because it's in a generated file. Change-Id: Iea4ccb12d6758199f312ea9cd753b84322d5c471
This commit is contained in:
parent
d3bf954e9f
commit
7d56ccbfaa
@ -63,13 +63,8 @@ typedef long int ssize_t;
|
|||||||
typedef long off_t;
|
typedef long off_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NULL
|
#define __need_NULL
|
||||||
#ifdef __GNUG__
|
#include <stddef.h>
|
||||||
#define NULL __null
|
|
||||||
#else
|
|
||||||
#define NULL 0L
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define _FSTDIO /* Define for new stdio with functions. */
|
#define _FSTDIO /* Define for new stdio with functions. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user