# HG changeset patch # User diego # Date 1209645959 0 # Node ID 4bc81fcf14bb1200b0b5ff74ba3494e691a83edb # Parent 05841cbb86aa788a073f1a6c210de3be02c27f05 Fix compilation on PPC without AltiVec. diff -r 05841cbb86aa -r 4bc81fcf14bb libmpeg2/cpu_state.c --- a/libmpeg2/cpu_state.c Thu May 01 12:30:29 2008 +0000 +++ b/libmpeg2/cpu_state.c Thu May 01 12:45:59 2008 +0000 @@ -47,7 +47,7 @@ } #endif -#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC) +#ifdef ARCH_PPC #if defined(__APPLE_CC__) /* apple */ #define LI(a,b) "li r" #a "," #b "\n\t" #define STVX0(a,b,c) "stvx v" #a ",0,r" #c "\n\t" diff -r 05841cbb86aa -r 4bc81fcf14bb libmpeg2/libmpeg-0.4.1.diff --- a/libmpeg2/libmpeg-0.4.1.diff Thu May 01 12:30:29 2008 +0000 +++ b/libmpeg2/libmpeg-0.4.1.diff Thu May 01 12:45:59 2008 +0000 @@ -95,8 +95,7 @@ @@ -48,18 +48,18 @@ #endif --#ifdef ARCH_PPC -+#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC) + #ifdef ARCH_PPC -#ifdef HAVE_ALTIVEC_H /* gnu */ -#define LI(a,b) "li " #a "," #b "\n\t" -#define STVX0(a,b,c) "stvx " #a ",0," #c "\n\t"