summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpeg2/cpu_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpeg2/cpu_state.c b/libmpeg2/cpu_state.c
index 2a032dec00..994b703105 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"