[Mplayer-cvslog] CVS: main/libmpeg2 cpu_state.c,1.2,1.3

Alex Beregszaszi alex at mplayerhq.hu
Wed Jun 18 00:24:16 CEST 2003


Update of /cvsroot/mplayer/main/libmpeg2
In directory mail:/var/tmp.root/cvs-serv32239

Modified Files:
	cpu_state.c 
Log Message:
Fixed compilation on g3. Patch by Dan Christiansen <danchr at daimi.au.dk>

Index: cpu_state.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/cpu_state.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cpu_state.c	17 Jun 2003 22:16:00 -0000	1.2
+++ cpu_state.c	17 Jun 2003 22:24:08 -0000	1.3
@@ -43,7 +43,7 @@
 }
 #endif
 
-#ifdef ARCH_PPC
+#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
 #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"
@@ -120,7 +120,7 @@
 	mpeg2_cpu_state_restore = state_restore_mmx;
     }
 #endif
-#ifdef ARCH_PPC
+#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
     if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
 	mpeg2_cpu_state_save = state_save_altivec;
 	mpeg2_cpu_state_restore = state_restore_altivec;



More information about the MPlayer-cvslog mailing list