From 98afd9b75b92c96c67bb02a0ec104c42c28aaade Mon Sep 17 00:00:00 2001 From: Jens Rottmann Date: Mon, 3 Nov 2008 23:16:00 +0000 Subject: Fix compile errors if CONFIG_FS_PAYLOAD=1: Compile error in filo.c if AUTOBOOT_DELAY=0. Replace #ifndef AUTOBOOT_DELAY with #if !AUTOBOOT_DELAY which should work for both the #undef and the =0 case. In ext2fs.c, fat.c #if ARCH == 'i386' results in a compile warning: "multi-character character constant" and the condition ARCH == 'i386' is mis-evaluated as FALSE, eventually choking the assembler on a PPC instruction. Change it to #ifdef __i386 Signed-off-by: Jens Rottmann Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3729 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/boot/filo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/boot') diff --git a/src/boot/filo.c b/src/boot/filo.c index 157bec2057..cd14fa13b3 100644 --- a/src/boot/filo.c +++ b/src/boot/filo.c @@ -18,7 +18,7 @@ #define autoboot(mem) #endif -#ifndef AUTOBOOT_DELAY +#if !AUTOBOOT_DELAY #define autoboot_delay() 0 /* success */ #endif -- cgit v1.2.3