From 48f15b192920c283285276c01cf71331314d66a2 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Sat, 7 Apr 2018 18:00:25 +0200 Subject: [PATCH 09/11] Avoid x86cpudetection code when not relevant --- feature/src/common/cpu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/feature/src/common/cpu.c b/feature/src/common/cpu.c index 4befea2..165488a 100644 --- a/feature/src/common/cpu.c +++ b/feature/src/common/cpu.c @@ -16,9 +16,10 @@ * */ -#include "cpudetect.h" #include "cpu.h" +#if defined(__i386__) || defined(__x86_64) +#include "cpudetect.h" enum vmaf_cpu cpu_autodetect() { @@ -31,3 +32,10 @@ enum vmaf_cpu cpu_autodetect() else return VMAF_CPU_NONE; } + +#else +enum vmaf_cpu cpu_autodetect() +{ + return VMAF_CPU_NONE; +} +#endif -- 2.17.1