[MPlayer-cvslog] r26627 - in trunk/libmpeg2: cpu_state.c libmpeg-0.4.1.diff

diego subversion at mplayerhq.hu
Thu May 1 14:45:59 CEST 2008


Author: diego
Date: Thu May  1 14:45:59 2008
New Revision: 26627

Log:
Fix compilation on PPC without AltiVec.


Modified:
   trunk/libmpeg2/cpu_state.c
   trunk/libmpeg2/libmpeg-0.4.1.diff

Modified: trunk/libmpeg2/cpu_state.c
==============================================================================
--- trunk/libmpeg2/cpu_state.c	(original)
+++ trunk/libmpeg2/cpu_state.c	Thu May  1 14:45:59 2008
@@ -47,7 +47,7 @@ static void state_restore_mmx (cpu_state
 }
 #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"

Modified: trunk/libmpeg2/libmpeg-0.4.1.diff
==============================================================================
--- trunk/libmpeg2/libmpeg-0.4.1.diff	(original)
+++ trunk/libmpeg2/libmpeg-0.4.1.diff	Thu May  1 14:45:59 2008
@@ -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"



More information about the MPlayer-cvslog mailing list