Commit 07cea6d1 authored by Reinhard Tartler's avatar Reinhard Tartler

Fix compilation on powerpc with --disable-altivec

in case altivec is disabled, even compilation of code using altivec
keywords or asm must be avoided.

Originally committed as revision 30869 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent 95bd18ee
...@@ -1142,7 +1142,7 @@ static inline void monoblack2Y(uint8_t *dst, const uint8_t *src, long width, uin ...@@ -1142,7 +1142,7 @@ static inline void monoblack2Y(uint8_t *dst, const uint8_t *src, long width, uin
#endif #endif
#if ARCH_PPC #if ARCH_PPC
#if HAVE_ALTIVEC || CONFIG_RUNTIME_CPUDETECT #if HAVE_ALTIVEC
#define COMPILE_ALTIVEC #define COMPILE_ALTIVEC
#endif #endif
#endif //ARCH_PPC #endif //ARCH_PPC
...@@ -1245,7 +1245,7 @@ SwsFunc ff_getSwsFunc(SwsContext *c) ...@@ -1245,7 +1245,7 @@ SwsFunc ff_getSwsFunc(SwsContext *c)
} }
#else #else
#if ARCH_PPC #if ARCH_PPC && COMPILE_ALTIVEC
if (flags & SWS_CPU_CAPS_ALTIVEC) { if (flags & SWS_CPU_CAPS_ALTIVEC) {
sws_init_swScale_altivec(c); sws_init_swScale_altivec(c);
return swScale_altivec; return swScale_altivec;
......
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