diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2008-09-23 21:29:53 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2008-09-23 21:29:53 +0000 |
commit | 3e3c83e40aedc98fd6cbf1a33bbaa3400726c0a0 (patch) | |
tree | b825d2a32ba3d99c22dff99b4e7e525cfcb890f0 /payloads/libpayload/util/kconfig/expr.h | |
parent | 05839975bf2549d5fb3bed460745e24ffd7b832a (diff) |
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 <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3592 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/util/kconfig/expr.h')
-rw-r--r-- | payloads/libpayload/util/kconfig/expr.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdio.h> #ifndef __cplusplus +#ifndef __sun #include <stdbool.h> +#else +typedef short bool; +enum { true=1, false=0}; +#endif #endif struct file { |