include/platform.h: PowerPC can also do unaligned access
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 11 Feb 2010 07:48:15 +0000 (08:48 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 11 Feb 2010 22:23:28 +0000 (23:23 +0100)
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/platform.h

index a134a9e4252ade616aa7aa50005d4df933297674..2d3821c0220b36f1b06f951ee9041bb581cc7927 100644 (file)
 /* NB: unaligned parameter should be a pointer, aligned one -
  * a lvalue. This makes it more likely to not swap them by mistake
  */
-#if defined(i386) || defined(__x86_64__)
+#if defined(i386) || defined(__x86_64__) || defined(__powerpc__)
 # include <stdint.h>
 typedef int      bb__aliased_int      FIX_ALIASING;
 typedef uint16_t bb__aliased_uint16_t FIX_ALIASING;