From 204dcba1b722956e246ea9c2ffde4970e027966f Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Thu, 1 Sep 2022 18:12:22 +0200 Subject: [PATCH] Conditionally include differ_vector_sse2.h only when on x86 platforms. Bug: None Change-Id: Ie2890c23e764a06109a706e07f4cba4da5e36cd2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/273820 Commit-Queue: Mirko Bonadei Commit-Queue: Alexander Cooper Auto-Submit: Mirko Bonadei Reviewed-by: Alexander Cooper Cr-Commit-Position: refs/heads/main@{#37983} --- modules/desktop_capture/differ_block.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/desktop_capture/differ_block.cc b/modules/desktop_capture/differ_block.cc index 54ee0829ea..c51d33e41e 100644 --- a/modules/desktop_capture/differ_block.cc +++ b/modules/desktop_capture/differ_block.cc @@ -12,10 +12,15 @@ #include -#include "modules/desktop_capture/differ_vector_sse2.h" #include "rtc_base/system/arch.h" #include "system_wrappers/include/cpu_features_wrapper.h" +// This needs to be after rtc_base/system/arch.h which defines +// architecture macros. +#if defined(WEBRTC_ARCH_X86_FAMILY) +#include "modules/desktop_capture/differ_vector_sse2.h" +#endif + namespace webrtc { namespace {