From f8790a536ac5459fbf8122fa19869104ff2cd20a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 12 Jul 2016 06:02:35 +0000 Subject: [PATCH] Fix remaining issues on PPC64EL One AltiVec-related build issue remained Self tests now pass on LE POWER platforms Signed-off-by: Timothy Pearson --- extern/poshlib/posh.h | 2 +- src/nvtt/squish/maths.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/extern/poshlib/posh.h b/extern/poshlib/posh.h index e87a337..3d9e7aa 100644 --- a/extern/poshlib/posh.h +++ b/extern/poshlib/posh.h @@ -672,7 +672,7 @@ LLVM: ** the MIPS series, so we have to be careful about those. ** ---------------------------------------------------------------------------- */ -#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_CPU_AARCH64 || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__ +#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_CPU_AARCH64 || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__ || defined __ORDER_LITTLE_ENDIAN__ # define POSH_ENDIAN_STRING "little" # define POSH_LITTLE_ENDIAN 1 #else diff --git a/src/nvtt/squish/maths.h b/src/nvtt/squish/maths.h index 9b892a6..12b2372 100644 --- a/src/nvtt/squish/maths.h +++ b/src/nvtt/squish/maths.h @@ -26,10 +26,18 @@ #ifndef NV_SQUISH_MATHS_H #define NV_SQUISH_MATHS_H +#if NV_USE_ALTIVEC +#undef vector +#endif + #include #include #include "config.h" +#if NV_USE_ALTIVEC +#define vector __vector +#endif + namespace nvsquish { class Vec3