mcst-linux-kernel/patches-2024.06.26/texlive-20180414/003-lcc_builtin_overflow.patch

13 lines
672 B
Diff

diff -Naur old/libs/graphite2/graphite2-src/src/inc/Main.h new/libs/graphite2/graphite2-src/src/inc/Main.h
--- old/libs/graphite2/graphite2-src/src/inc/Main.h 2019-04-15 20:41:13.085936310 +0300
+++ new/libs/graphite2/graphite2-src/src/inc/Main.h 2019-04-15 20:42:32.065934182 +0300
@@ -82,7 +82,7 @@
#if __has_builtin(__builtin_mul_overflow)
#define HAVE_BUILTIN_OVERFLOW
#endif
-#elif defined(__GNUC__) && (__GNUC__ >= 5) && !defined(__INTEL_COMPILER)
+#elif defined(__GNUC__) && (__GNUC__ >= 5) && !defined(__INTEL_COMPILER) && (!defined __LCC__ || ((defined __LCC__) && (__LCC__ > 123)))
#define HAVE_BUILTIN_OVERFLOW
#endif
#if defined(__has_include)