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 {