Warning, /graphics/krita/3rdparty/ext_icu/0002-Windows-enable-C-code-generation-with-overridden-ent.patch is written in an unsupported language. File is not indexed.
0001 From 6728f3117fb33734c15d9add4e432db4f135d047 Mon Sep 17 00:00:00 2001
0002 From: "L. E. Segovia" <amy@amyspark.me>
0003 Date: Wed, 16 Nov 2022 19:16:08 -0300
0004 Subject: [PATCH 2/3] Windows: enable C-code generation with overridden entry
0005 point
0006
0007 ---
0008 icu4c/source/tools/toolutil/pkg_genc.cpp | 12 ++++++++++++
0009 icu4c/source/tools/toolutil/pkg_genc.h | 2 +-
0010 2 files changed, 13 insertions(+), 1 deletion(-)
0011
0012 diff --git a/icu4c/source/tools/toolutil/pkg_genc.cpp b/icu4c/source/tools/toolutil/pkg_genc.cpp
0013 index 741a8a5228c..4ae36702da6 100644
0014 --- a/icu4c/source/tools/toolutil/pkg_genc.cpp
0015 +++ b/icu4c/source/tools/toolutil/pkg_genc.cpp
0016 @@ -485,6 +485,18 @@ writeCCode(
0017 #endif
0018 }
0019
0020 + if(optEntryPoint != NULL) {
0021 + uprv_strcpy(entry, optEntryPoint);
0022 + uprv_strcat(entry, "_dat");
0023 + }
0024 + /* turn dashes in the entry name into underscores */
0025 + length=uprv_strlen(entry);
0026 + for(i=0; i<length; ++i) {
0027 + if(entry[length+i]=='-') {
0028 + entry[length+i]='_';
0029 + }
0030 + }
0031 +
0032 out=T_FileStream_open(buffer, "w");
0033 if(out==nullptr) {
0034 fprintf(stderr, "genccode: unable to open output file %s\n", buffer);
0035 diff --git a/icu4c/source/tools/toolutil/pkg_genc.h b/icu4c/source/tools/toolutil/pkg_genc.h
0036 index 65604436fd6..0723e777894 100644
0037 --- a/icu4c/source/tools/toolutil/pkg_genc.h
0038 +++ b/icu4c/source/tools/toolutil/pkg_genc.h
0039 @@ -48,7 +48,7 @@
0040 * the data to generate the final data library. This can
0041 * increase the performance of the pkdata tool.
0042 */
0043 -#if U_PLATFORM == U_PF_OS400
0044 +#if U_PLATFORM == U_PF_OS400 || U_PLATFORM_HAS_WIN32_API
0045 #define USE_SINGLE_CCODE_FILE
0046 #endif
0047
0048 --
0049 2.24.1.windows.2
0050