From 81bbd840fe49cb9cc91f236b0e5671b5b822cacd Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 19 Mar 2010 09:57:36 +0000 Subject: [PATCH] Check whether COMPILE_ALTIVEC is defined, not if it is set to a 0/1 value. COMPILE_ALTIVEC is never set to 1, it is just #defined. Originally committed as revision 30937 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index de6eec6a2d..1d255bcb39 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1262,7 +1262,7 @@ SwsFunc ff_getSwsFunc(SwsContext *c) } #else -#if ARCH_PPC && COMPILE_ALTIVEC +#if ARCH_PPC && defined(COMPILE_ALTIVEC) if (flags & SWS_CPU_CAPS_ALTIVEC) { sws_init_swScale_altivec(c); return swScale_altivec;