From 3d99d7e4de3d9443ec7f668e9da8de392c4bf7c2 Mon Sep 17 00:00:00 2001 From: Safihre Date: Sun, 19 May 2024 12:13:29 +0200 Subject: [PATCH] Synology build fixes --- src/yencode/crc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yencode/crc.h b/src/yencode/crc.h index 27f66f0..ae9f6d0 100644 --- a/src/yencode/crc.h +++ b/src/yencode/crc.h @@ -23,7 +23,7 @@ static inline int crc32_isa_level() { // computes `n % 0xffffffff` (well, almost), using some bit-hacks static inline uint32_t crc32_powmod(uint64_t n) { -#ifdef __GNUC__ +#if defined(__GNUC__) && (__GNUC__ >= 5 || (defined(__clang__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ > 3)))) unsigned res; unsigned carry = __builtin_uadd_overflow(n >> 32, n, &res); res += carry;