libwebp: Fix Windows ARM64EC build


The ARM64EC MSVC toolchain defines _M_X64 in addition to _M_ARM64EC.

The WEBP_MSC_SSE2, WEBP_MSC_SSE41 and WEBP_MSC_AVX2 macros in cpu.h
were all gated on _M_X64, so they were activated for ARM64EC targets
as well.

This caused the SSE2/SSE4.1/AVX2 source files to include x86 intrinsic
headers (emmintrin.h, smmintrin.h, immintrin.h) directly, which MSVC's
ARM64EC toolchain rejects with:

  fatal error C1189: this header should only be included through
    <intrin.h>

Exclude _M_ARM64EC from each of the checks so those code paths are
not enabled on ARM64EC.

This fix has no upstream libwebp equivalent yet.

Fixes: QTBUG-146201
Change-Id: Ief4175b8df8d76f0da59a22b596c568b85f8a373
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
commitc64b9ba353b944052299c7393d72409a48fc94c3
parent848255f6414f7d1f3b4c0a3ab5383e47ac5a2a25
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeWed, 6 May 2026 13:41:41 +0000