changeset 26595:4bc81fcf14bb

Fix compilation on PPC without AltiVec.
author diego
date Thu, 01 May 2008 12:45:59 +0000
parents 05841cbb86aa
children 75dcc46740c4
files libmpeg2/cpu_state.c libmpeg2/libmpeg-0.4.1.diff
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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"
--- 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"