mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 22:27:02 +02:00
icu: add patch for checkImpl to be static
This commit is contained in:
parent
4003b568b9
commit
a080f7b135
2 changed files with 27 additions and 1 deletions
26
srcpkgs/icu/patches/checkImpl.patch
Normal file
26
srcpkgs/icu/patches/checkImpl.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
diff --git a/icu4c/source/common/unicode/urename.h b/icu4c/source/common/unicode/urename.h
|
||||
index 5812173e39c..0512be3b6e5 100644
|
||||
--- source/common/unicode/urename.h
|
||||
+++ source/common/unicode/urename.h
|
||||
@@ -110,7 +110,6 @@
|
||||
#define _UTF7Data U_ICU_ENTRY_POINT_RENAME(_UTF7Data)
|
||||
#define _UTF8Data U_ICU_ENTRY_POINT_RENAME(_UTF8Data)
|
||||
#define allowedHourFormatsCleanup U_ICU_ENTRY_POINT_RENAME(allowedHourFormatsCleanup)
|
||||
-#define checkImpl U_ICU_ENTRY_POINT_RENAME(checkImpl)
|
||||
#define cmemory_cleanup U_ICU_ENTRY_POINT_RENAME(cmemory_cleanup)
|
||||
#define dayPeriodRulesCleanup U_ICU_ENTRY_POINT_RENAME(dayPeriodRulesCleanup)
|
||||
#define deleteAllowedHourFormats U_ICU_ENTRY_POINT_RENAME(deleteAllowedHourFormats)
|
||||
diff --git a/icu4c/source/i18n/uspoof.cpp b/icu4c/source/i18n/uspoof.cpp
|
||||
index 8e3d69ede2b..66f228f037a 100644
|
||||
--- source/i18n/uspoof.cpp
|
||||
+++ source/i18n/uspoof.cpp
|
||||
@@ -547,7 +547,7 @@ uspoof_checkUnicodeString(const USpoofChecker *sc,
|
||||
return uspoof_check2UnicodeString(sc, id, NULL, status);
|
||||
}
|
||||
|
||||
-int32_t checkImpl(const SpoofImpl* This, const UnicodeString& id, CheckResult* checkResult, UErrorCode* status) {
|
||||
+static int32_t checkImpl(const SpoofImpl* This, const UnicodeString& id, CheckResult* checkResult, UErrorCode* status) {
|
||||
U_ASSERT(This != NULL);
|
||||
U_ASSERT(checkResult != NULL);
|
||||
checkResult->clear();
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'icu'
|
||||
pkgname=icu
|
||||
version=63.1
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc=icu
|
||||
build_wrksrc=source
|
||||
build_style=gnu-configure
|
||||
|
|
Loading…
Add table
Reference in a new issue