opt/qt6-webengine/icu74.patch

19 lines
739 B
Diff

Patch status: likely be handled when chromium bumps bundled ICU
Quick fix for a static_assert failure with icu74. Still waiting
for a proper upstream fix that handles these additions properly,
but this is an extension of [1] (is now 48 rather than 43).
https://bugs.gentoo.org/917633
[1] https://crrev.com/e60b571faa3f14dd9119a6792dccf12f8bf80192
--- a/src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc
+++ b/src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc
@@ -163,3 +163,5 @@
-#if U_ICU_VERSION_MAJOR_NUM >= 58
+#if U_ICU_VERSION_MAJOR_NUM >= 74
+#define BA_LB_COUNT (U_LB_COUNT - 8)
+#elif U_ICU_VERSION_MAJOR_NUM >= 58
#define BA_LB_COUNT (U_LB_COUNT - 3)