From 4e3d49008eed2ca4df8a2c75c72cfe4238ec6400 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 17 Jun 2003 22:24:08 +0000 Subject: [PATCH] Fixed compilation on g3. Patch by Dan Christiansen git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10300 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpeg2/cpu_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpeg2/cpu_state.c b/libmpeg2/cpu_state.c index a94e5fedc6..e6544c6904 100644 --- a/libmpeg2/cpu_state.c +++ b/libmpeg2/cpu_state.c @@ -43,7 +43,7 @@ static void state_restore_mmx (cpu_state_t * state) } #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 @@ void mpeg2_cpu_state_init (uint32_t accel) 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;