const up icu gencmn output

Change-Id: I0e39e5833b78b1c699782cf040dfbe49cf76ba8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187905
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2025-07-15 09:57:18 +01:00
parent a9399dc2ba
commit e52bdd6d65
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From a918593e59e4fc67055420281940f67a068e0598 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@gmail.com>
Date: Tue, 15 Jul 2025 11:21:18 +0100
Subject: [PATCH] ICU-23054 const up struct that gencmn outputs
---
icu4c/source/tools/toolutil/pkg_gencmn.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/icu4c/source/tools/toolutil/pkg_gencmn.cpp b/icu4c/source/tools/toolutil/pkg_gencmn.cpp
index 3ec965d8e6..c1a46e9aed 100644
--- a/icu4c/source/tools/toolutil/pkg_gencmn.cpp
+++ b/icu4c/source/tools/toolutil/pkg_gencmn.cpp
@@ -360,7 +360,7 @@ createCommonDataFile(const char *destDir, const char *name, const char *entrypoi
snprintf(
buffer, sizeof(buffer),
- "U_EXPORT struct {\n"
+ "U_EXPORT const struct {\n"
" uint16_t headerSize;\n"
" uint8_t magic1, magic2;\n"
" UDataInfo info;\n"
--
2.49.0

View File

@ -41,6 +41,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,icu,\
$(if $(filter-out ANDROID,$(OS)),external/icu/icu4c-icudata-stdlibs.patch.1) \
external/icu/no-python.patch \
external/icu/Wunnecessary-virtual-specifier.patch \
external/icu/0001-ICU-23054-const-up-struct-that-gencmn-outputs.patch.2 \
))
$(eval $(call gb_UnpackedTarball_add_file,icu,source/data/brkitr/khmerdict.dict,external/icu/khmerdict.dict))