icu-74.patch 827 B

123456789101112131415161718192021
  1. https://bugs.gentoo.org/917645
  2. (copied patch from qtwebengine:6 - https://bugs.gentoo.org/917633)
  3. Quick fix for a static_assert failure with icu74. Still waiting
  4. for a proper upstream fix and unknown if entirely right, but is
  5. an extension of [1] (is now 48 rather than 43).
  6. [1] https://crrev.com/e60b571faa3f14dd9119a6792dccf12f8bf80192
  7. --- a/third_party/blink/renderer/platform/text/text_break_iterator.cc
  8. +++ b/third_party/blink/renderer/platform/text/text_break_iterator.cc
  9. @@ -161,7 +161,9 @@ static const unsigned char kAsciiLineBreakTable[][(kAsciiLineBreakTableLastChar
  10. };
  11. // clang-format on
  12. -#if U_ICU_VERSION_MAJOR_NUM >= 58
  13. +#if U_ICU_VERSION_MAJOR_NUM >= 74
  14. +#define BA_LB_COUNT (U_LB_COUNT - 8)
  15. +#elif U_ICU_VERSION_MAJOR_NUM >= 58
  16. #define BA_LB_COUNT (U_LB_COUNT - 3)
  17. #else
  18. #define BA_LB_COUNT U_LB_COUNT