diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 02032bde89970f68ad66a786c8d516edeb04d2fb..8a16d8298021162daa3856a1ced170322878d326 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -961,6 +961,7 @@ static inline void yuv2rgbXinC_full(SwsContext *c, int16_t *lumFilter, int16_t *
 
 #if ARCH_PPC
 #if (HAVE_ALTIVEC || defined (RUNTIME_CPUDETECT)) && CONFIG_GPL
+#undef COMPILE_C
 #define COMPILE_ALTIVEC
 #endif
 #endif //ARCH_PPC