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 <mbonadei@webrtc.org>
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/main@{#37983}
This commit is contained in:
Mirko Bonadei 2022-09-01 18:12:22 +02:00 committed by WebRTC LUCI CQ
parent ce03028216
commit 204dcba1b7

View File

@ -12,10 +12,15 @@
#include <string.h>
#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 {