diff options
author | Andreas Färber | 2012-05-27 16:21:02 +0200 |
---|---|---|
committer | Andreas Färber | 2012-05-29 11:38:07 +0200 |
commit | f283edc4827f6bfa82240e36433d7184ab106b0f (patch) | |
tree | 3bca6d14081ed6a94ec9bd97575b9cdd99f78937 /hw/pci.c | |
parent | tcg/ppc: Handle _CALL_DARWIN being undefined on Darwin (diff) | |
download | qemu-f283edc4827f6bfa82240e36433d7184ab106b0f.tar.gz qemu-f283edc4827f6bfa82240e36433d7184ab106b0f.tar.xz qemu-f283edc4827f6bfa82240e36433d7184ab106b0f.zip |
arch_init: Fix AltiVec build on Darwin/ppc
Commit f29a56147b66845914d0a645bf9b4c5bb9a6af57 (implement
-no-user-config command-line option (v3)) introduced uses of bool
in arch_init.c. Shortly before that usage is support code for
AltiVec (conditional to __ALTIVEC__).
GCC's altivec.h may in a !__APPLE_ALTIVEC__ code path redefine bool,
leading to type mismatches. altivec.h recommends to #undef for C++
compatibility, but doing so in C leads to bool remaining undefined.
Fix by redefining bool to _Bool as mandated for stdbool.h by POSIX.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci.c')
0 files changed, 0 insertions, 0 deletions