]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Check also for __clang__ in memcmplen.h.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 20 Dec 2023 19:01:06 +0000 (21:01 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 28 Dec 2023 15:17:39 +0000 (17:17 +0200)
This change hopefully makes no practical difference as Clang
likely was detected via __GNUC__ or _MSC_VER already.

src/liblzma/common/memcmplen.h

index 99d9c519cc0d83dcd1007f15ecc62fa2e097b110..81922ba2e5aa09b2cca85a561b0b30de84fe341d 100644 (file)
@@ -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)))