]> git.sesse.net Git - x264/commitdiff
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 441b8ce017433ebff6d381d61a1bf7701a63134d..afda3a77e096b90cafdde5f2b60d79f1a0d0ce3c 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>