[libunistring] Use system-provided stdint.h under modern MSVC. (#47409)

This commit is contained in:
Daniel Collins 2025-09-24 19:34:17 +01:00 committed by GitHub
parent b3486924f1
commit a3476c776e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- a/lib/Makefile.am 2025-09-18 14:31:56.883185700 +0100
+++ b/lib/Makefile.am 2025-09-18 14:32:34.860321900 +0100
@@ -101,7 +101,7 @@
rm -f $@-t $@
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#include <stddef.h>'; \
- echo '#if __GLIBC__ >= 2'; \
+ echo '#if __GLIBC__ >= 2 || (defined(_MSC_VER) && _MSC_VER >= 1600)'; \
echo '#include <stdint.h>'; \
echo '#else'; \
if test -f /usr/include/stdint.h; then \

View File

@ -15,6 +15,7 @@ vcpkg_extract_source_archive(SOURCE_PATH
disable-gnulib-fetch.patch
disable-subdirs.patch
parallelize-symbol-collection.patch
msvc-use-stdint.patch
)
vcpkg_configure_make(

View File

@ -1,7 +1,7 @@
{
"name": "libunistring",
"version": "1.2",
"port-version": 1,
"port-version": 2,
"description": "GNU libunistring provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.",
"homepage": "https://www.gnu.org/software/libunistring/",
"license": "LGPL-3.0-or-later OR GPL-2.0-or-later",

View File

@ -5570,7 +5570,7 @@
},
"libunistring": {
"baseline": "1.2",
"port-version": 1
"port-version": 2
},
"libunwind": {
"baseline": "1.8.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2d4c1b3ca54d175219e941aa7c10fa90a7703d57",
"version": "1.2",
"port-version": 2
},
{
"git-tree": "3208f551857e54853db0434e6dd954f42c5cf699",
"version": "1.2",