From 3d5bb236aa6147ce24d9618f2d482e76eefc58c6 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sun, 9 May 2010 21:15:13 +0000 Subject: Move includes to where they are needed. This allows to simplify romstage.c files in mainboards. Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5539 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/include/stddef.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/arch/i386') diff --git a/src/arch/i386/include/stddef.h b/src/arch/i386/include/stddef.h index e4fc019c87..6583cc62ef 100644 --- a/src/arch/i386/include/stddef.h +++ b/src/arch/i386/include/stddef.h @@ -8,7 +8,9 @@ typedef long ssize_t; typedef int wchar_t; typedef unsigned int wint_t; +#ifndef NULL #define NULL ((void *)0) +#endif #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -- cgit v1.2.3