From 1eff7fbf116790aaacc8f89def68be11149626cc Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 13 Jan 2009 23:12:34 +0000 Subject: Do not rely on __powerpc__ being defined as a feature test macro __powerpc__ is not defined on AIX and Darwin, Makefile.target adds it to CPPFLAGS for target specific code which cache-utils are not. Since there's not common definition which can safely be used on all platforms use HOST_PPC provided by config-host.h The problem was originally reported by C. W. Betts git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6292 c046a42c-6fe2-441c-8c8c-71466251a162 --- cache-utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cache-utils.h') diff --git a/cache-utils.h b/cache-utils.h index 0598b96eba..19b24ab4e1 100644 --- a/cache-utils.h +++ b/cache-utils.h @@ -1,7 +1,9 @@ #ifndef QEMU_CACHE_UTILS_H #define QEMU_CACHE_UTILS_H -#ifdef __powerpc__ +#include "config-host.h" + +#ifdef HOST_PPC struct qemu_cache_conf { unsigned long dcache_bsize; unsigned long icache_bsize; -- cgit v1.2.1