[x264-devel] ppc: Only perform AltiVec detection if compiled with AltiVec enabled
Anton Mitrofanov
git at videolan.org
Sun Jan 17 22:17:57 CET 2016
x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Mon Jan 11 21:39:22 2016 +0300| [1e4a24f305c006a95fec00131703d0e0ecae3a38] | committer: Anton Mitrofanov
ppc: Only perform AltiVec detection if compiled with AltiVec enabled
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=1e4a24f305c006a95fec00131703d0e0ecae3a38
---
common/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/cpu.c b/common/cpu.c
index 441b8ce..afda3a7 100644
--- a/common/cpu.c
+++ b/common/cpu.c
@@ -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>
More information about the x264-devel
mailing list