[icu] Fix mingw (#39742)

This commit is contained in:
Kai Pastor 2024-07-08 16:15:55 +02:00 committed by GitHub
parent c439d7896b
commit f3e209dba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,12 @@
diff --git a/source/common/putil.cpp b/source/common/putil.cpp
index ab25f3b..94782f8 100644
--- a/source/common/putil.cpp
+++ b/source/common/putil.cpp
@@ -48,7 +48,6 @@
#if U_PLATFORM == U_PF_MINGW && defined __STRICT_ANSI__
/* tzset isn't defined in strict ANSI on MinGW. */
-#undef __STRICT_ANSI__
#endif
/*

View File

@ -36,6 +36,7 @@ vcpkg_extract_source_archive(SOURCE_PATH
fix-win-build.patch
vcpkg-cross-data.patch
darwin-rpath.patch
mingw-strict-ansi.diff # backport of https://github.com/unicode-org/icu/pull/3003
)
vcpkg_find_acquire_program(PYTHON3)

View File

@ -1,7 +1,7 @@
{
"name": "icu",
"version": "74.2",
"port-version": 3,
"port-version": 4,
"description": "Mature and widely used Unicode and localization library.",
"homepage": "https://icu.unicode.org/home",
"license": "ICU",

View File

@ -3502,7 +3502,7 @@
},
"icu": {
"baseline": "74.2",
"port-version": 3
"port-version": 4
},
"ideviceinstaller": {
"baseline": "2023-07-21",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "291bbc492b8f73dea0dbd12051e9b12b21aef900",
"version": "74.2",
"port-version": 4
},
{
"git-tree": "fd268f9bb3ccbccf9bcd7eac2c2ff407625477dd",
"version": "74.2",