From 3e3c83e40aedc98fd6cbf1a33bbaa3400726c0a0 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 23 Sep 2008 21:29:53 +0000 Subject: 1. Preset CC to gcc in Makefile. There are some $(shell $(CC) ...) invocations with GCC specific options, so that shouldn't hurt. 2. Replace stdbool.h include in util/kconfig/expr.h by a custom implementation of booleans. This is okay as these booleans are purely internal. It's necessary because there's some disagreement between the Solaris headers and GCC on Solaris, about when stdbool.h is appropriate. 3. Remove stdbool.h include from util/kconfig/zconf.tab.c_shipped. This file includes expr.h already, so it picks up the right set of primitives, without duplicating the special case for Solaris. Signed-off-by: Patrick Georgi Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3592 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/util/kconfig/expr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'payloads/libpayload/util/kconfig/expr.h') diff --git a/payloads/libpayload/util/kconfig/expr.h b/payloads/libpayload/util/kconfig/expr.h index 9d4cba1c00..25ec05ee3b 100644 --- a/payloads/libpayload/util/kconfig/expr.h +++ b/payloads/libpayload/util/kconfig/expr.h @@ -12,7 +12,12 @@ extern "C" { #include #ifndef __cplusplus +#ifndef __sun #include +#else +typedef short bool; +enum { true=1, false=0}; +#endif #endif struct file { -- cgit v1.2.3