diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-06-28 20:22:38 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-06-28 23:59:51 +0800 |
commit | e3356a204c5ae02db3ec4552b6c1be354e9b6142 (patch) | |
tree | 865dfc90da970ac4bf88a5d35bf8f0ef89583208 /dos/INSTALL.txt | |
parent | CI: Add test with -fsanitize=address,undefined. (diff) | |
download | xz-e3356a204c5ae02db3ec4552b6c1be354e9b6142.tar.xz |
liblzma: Prevent warning for MSYS2 Windows build.
In lzma_memcmplen(), the <intrin.h> header file is only included if
_MSC_VER and _M_X64 are both defined but _BitScanForward64() was
previously used if _M_X64 was defined. GCC for MSYS2 defines _M_X64 but
not _MSC_VER so _BitScanForward64() was used without including
<intrin.h>.
Now, lzma_memcmplen() will use __builtin_ctzll() for MSYS2 GCC builds as
expected.
Diffstat (limited to 'dos/INSTALL.txt')
0 files changed, 0 insertions, 0 deletions