aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-14 18:39:49 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-14 18:39:49 +0000
commite58ffeb322e2ef88cc23e9505366418bf793316d (patch)
treef0388fd05761378accf4d5101e89a445045498bf /bswap.h
parentFix some more warnings (diff)
downloadqemu-kvm-e58ffeb322e2ef88cc23e9505366418bf793316d.tar.gz
qemu-kvm-e58ffeb322e2ef88cc23e9505366418bf793316d.tar.bz2
qemu-kvm-e58ffeb322e2ef88cc23e9505366418bf793316d.zip
Remove all traces of __powerpc__
According to $GCC/gcc/config/rs6000/rs6000-c.c _ARCH_PPC is the ubiquitous define which should be used to test whether gcc targets PowerPC, on 64bit platforms _ARCH_PPC64 will be also defined. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6301 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'bswap.h')
-rw-r--r--bswap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bswap.h b/bswap.h
index 08b77d937..63b81cc43 100644
--- a/bswap.h
+++ b/bswap.h
@@ -134,7 +134,7 @@ CPU_CONVERT(le, 64, uint64_t)
/* unaligned versions (optimized for frequent unaligned accesses)*/
-#if defined(__i386__) || defined(__powerpc__)
+#if defined(__i386__) || defined(_ARCH_PPC)
#define cpu_to_le16wu(p, v) cpu_to_le16w(p, v)
#define cpu_to_le32wu(p, v) cpu_to_le32w(p, v)