mcst-linux-kernel/patches-2024.06.26/coreutils-8.30/0002-lcc_int128.patch

15 lines
517 B
Diff

--- old/src/make-prime-list.c 2019-10-21 15:50:04.967703069 +0300
+++ new/src/make-prime-list.c 2019-10-21 16:08:34.692637019 +0300
@@ -40,7 +40,11 @@
-Dwide_uint='unsigned __int128' to override the heuristic. */
#ifndef wide_uint
# if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) && ULONG_MAX >> 31 >> 31 >> 1 != 0
+# if (!defined __LCC__ || ((defined __LCC__) && (__LCC__ > 123)))
typedef unsigned __int128 wide_uint;
+# else
+typedef uintmax_t wide_uint;
+# endif
# else
typedef uintmax_t wide_uint;
# endif