ppc: Only perform AltiVec detection if compiled with AltiVec enabled
authorAnton Mitrofanov <BugMaster@narod.ru>
Mon, 11 Jan 2016 18:39:22 +0000 (21:39 +0300)
committerAnton Mitrofanov <BugMaster@narod.ru>
Sun, 17 Jan 2016 20:05:52 +0000 (23:05 +0300)
common/cpu.c

index 441b8ce..afda3a7 100644 (file)
@@ -316,7 +316,7 @@ uint32_t x264_cpu_detect( void )
     return cpu;
 }
 
-#elif ARCH_PPC
+#elif ARCH_PPC && HAVE_ALTIVEC
 
 #if SYS_MACOSX || SYS_OPENBSD || SYS_FREEBSD
 #include <sys/sysctl.h>