]> git.ipfire.org Git - thirdparty/xz.git/commit
Windows: Include <intrin.h> when needed.
authorJia Tan <jiat0218@gmail.com>
Wed, 19 Apr 2023 14:22:16 +0000 (22:22 +0800)
committerJia Tan <jiat0218@gmail.com>
Wed, 19 Apr 2023 14:22:16 +0000 (22:22 +0800)
commitf41df2ac2fed347d3f107f3533e76e000d29c6cb
tree2f434efad6e8672a261a31881b64d7969240b4bc
parent7062348bf35c1e4cbfee00ad9fffb4a21aa6eff7
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