Windows: Include <intrin.h> when needed.
commit9e343a46cf87a345799222c0b0b3a6f3358dde0c
authorJia Tan <jiat0218@gmail.com>
Wed, 19 Apr 2023 14:22:16 +0000 (19 22:22 +0800)
committerJia Tan <jiat0218@gmail.com>
Tue, 25 Apr 2023 12:19:32 +0000 (25 20:19 +0800)
treefa3e77149bb1fe2dec3d624f508bc555999cead0
parent12321a9390acc076b414035a46df9d7545ac379f
Windows: Include <intrin.h> when needed.

Legacy Windows did not need to #include <intrin.h> to use the MSVC
intrinsics. Newer versions likely just issue a warning, but the MSVC
documentation says to include the header file for the intrinsics we use.

GCC and Clang can "pretend" to be MSVC on Windows, so extra checks are
needed in tuklib_integer.h to only include <intrin.h> when it will is
actually needed.
src/common/tuklib_integer.h
src/liblzma/common/memcmplen.h