From 7d56ccbfaac2b702e4be0f71038efb7f251ef637 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 1 Oct 2012 17:56:58 -0700 Subject: [PATCH] Always take GCC's definition of NULL. There's a (bad) definition of NULL in , and this definition of NULL, and the One True definition in the provided by the compiler. This change at least kills one of the bad duplicates. Killing the one is harder, because it's in a generated file. Change-Id: Iea4ccb12d6758199f312ea9cd753b84322d5c471 --- libc/include/stdio.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libc/include/stdio.h b/libc/include/stdio.h index d7c881cb4..3f453fe62 100644 --- a/libc/include/stdio.h +++ b/libc/include/stdio.h @@ -63,13 +63,8 @@ typedef long int ssize_t; typedef long off_t; #endif -#ifndef NULL -#ifdef __GNUG__ -#define NULL __null -#else -#define NULL 0L -#endif -#endif +#define __need_NULL +#include #define _FSTDIO /* Define for new stdio with functions. */