28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 45c6d06ced023d2be72a845ec85d0e7207c007a3 Mon Sep 17 00:00:00 2001
|
|
From: desert-sailor <dongxing.wang_a@thundersoft.com>
|
|
Date: Tue, 20 Feb 2024 18:25:13 +0800
|
|
Subject: [PATCH] fix compile error caused by icu upgrade
|
|
|
|
---
|
|
.../blink/renderer/platform/text/text_break_iterator.cc | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git 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
|
|
index d305427d0..3c797c71e 100644
|
|
--- 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
|
|
@@ -161,7 +161,9 @@ static const unsigned char kAsciiLineBreakTable[][(kAsciiLineBreakTableLastChar
|
|
};
|
|
// clang-format on
|
|
|
|
-#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)
|
|
#else
|
|
#define BA_LB_COUNT U_LB_COUNT
|
|
--
|
|
2.43.0
|
|
|