Commit 857a8141 authored by Christophe Massiot's avatar Christophe Massiot

* libmpeg2: Make sure that VIS stuff is only compiled when enabled, patch

   by Diego Biurrun
parent 80b3c09b
......@@ -127,7 +127,7 @@ static inline uint32_t arch_accel (uint32_t accel)
}
#endif /* ARCH_X86 || ARCH_X86_64 */
#if defined(ACCEL_DETECT) && (defined(ARCH_PPC) || defined(ARCH_SPARC))
#if defined(ACCEL_DETECT) && (defined(ARCH_PPC) || (defined(ARCH_SPARC) && defined(HAVE_VIS)))
#include <signal.h>
#include <setjmp.h>
......
......@@ -52,7 +52,7 @@ void mpeg2_mc_init (uint32_t accel)
mpeg2_mc = mpeg2_mc_alpha;
else
#endif
#ifdef ARCH_SPARC
#if defined(ARCH_SPARC) && defined(HAVE_VIS)
if (accel & MPEG2_ACCEL_SPARC_VIS)
mpeg2_mc = mpeg2_mc_vis;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment