diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-12-20 21:01:06 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-12-28 17:17:39 +0200 |
commit | 12c90c00f05e19da3c0c91d8cd8e0d0d45965606 (patch) | |
tree | 639af848674e8c1c529733aaa0d081dfabbf6743 /src/liblzma | |
parent | Translations: Update the French translation. (diff) | |
download | xz-12c90c00f05e19da3c0c91d8cd8e0d0d45965606.tar.xz |
liblzma: Check also for __clang__ in memcmplen.h.
This change hopefully makes no practical difference as Clang
likely was detected via __GNUC__ or _MSC_VER already.
Diffstat (limited to 'src/liblzma')
-rw-r--r-- | src/liblzma/common/memcmplen.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liblzma/common/memcmplen.h b/src/liblzma/common/memcmplen.h index 99d9c519..81922ba2 100644 --- a/src/liblzma/common/memcmplen.h +++ b/src/liblzma/common/memcmplen.h @@ -57,7 +57,8 @@ lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, assert(limit <= UINT32_MAX / 2); #if defined(TUKLIB_FAST_UNALIGNED_ACCESS) \ - && ((TUKLIB_GNUC_REQ(3, 4) && defined(__x86_64__)) \ + && (((TUKLIB_GNUC_REQ(3, 4) || defined(__clang__)) \ + && defined(__x86_64__)) \ || (defined(__INTEL_COMPILER) && defined(__x86_64__)) \ || (defined(__INTEL_COMPILER) && defined(_M_X64)) \ || (defined(_MSC_VER) && defined(_M_X64))) |