Group :: System/Libraries
RPM: libplist
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: libplist-2.0.0-alt-e2k-lcc123.patch
Download
Download
diff -Naur libplist-2.0.0-orig/src/bplist.c libplist-2.0.0/src/bplist.c
--- libplist-2.0.0-orig/src/bplist.c 2017-04-20 12:38:58.000000000 +0300
+++ libplist-2.0.0/src/bplist.c 2019-01-08 18:12:36.545927616 +0300
@@ -182,7 +182,7 @@
#define __has_builtin(x) 0
#endif
-#if __has_builtin(__builtin_umulll_overflow) || __GNUC__ >= 5
+#if __has_builtin(__builtin_umulll_overflow) || (__GNUC__ >= 5 && !(defined __LCC__ && __LCC__ <= 123))
#define uint64_mul_overflow(a, b, r) __builtin_umulll_overflow(a, b, (unsigned long long*)r)
#else
static int uint64_mul_overflow(uint64_t a, uint64_t b, uint64_t *res)