summaryrefslogtreecommitdiff
blob: 67afd661e47d482e36d7d0246289133683419485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- convert/mtv/archdep.h	2010-03-11 04:35:04.596642403 +0000
+++ convert/mtv/archdep.h	2010-03-11 04:34:38.949974604 +0000
@@ -17,7 +17,7 @@
  * Note that these macros *do not* work for in-place transformations.
  */
 
-#if defined (mc68000) || defined (sparc)
+#if defined (mc68000) || defined (sparc) || defined (__powerpc__)
 #define	DECODE_SHORT(from, to)	*((short *)(to)) = *((short *)(from))
 #define	DECODE_LONG(from, to)	*((long *)(to)) = *((long *)(from))
 #define	DECODE_FLOAT(from, to)	*((float *)(to)) = *((float *)(from))
@@ -75,7 +75,7 @@
 
 
 /* Most architectures are symmetrical with respect to conversions. */
-#if defined (mc68000) || defined (sparc) || defined (i386) || defined(__x86_64)
+#if defined (mc68000) || defined (sparc) || defined (i386) || defined(__x86_64) || defined(__powerpc__)
 #define	ENCODE_SHORT(from, to)		DECODE_SHORT((from), (to))
 #define	ENCODE_LONG(from, to)		DECODE_LONG((from), (to))
 #define	ENCODE_FLOAT(from, to)		DECODE_FLOAT((from), (to))