[libxslt] fix export statements for clang-cl (#26003)

* fix libxslt export statement to include extern for clang-cl

* v db
This commit is contained in:
Alexander Neumann 2022-07-29 00:21:33 +02:00 committed by GitHub
parent 768932ab5b
commit d3f74469ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 2 deletions

View File

@ -0,0 +1,30 @@
diff --git a/libexslt/exsltexports.h b/libexslt/exsltexports.h
index 381567e0a..5088e0ec4 100644
--- a/libexslt/exsltexports.h
+++ b/libexslt/exsltexports.h
@@ -48,8 +48,8 @@
#undef EXSLTPUBVAR
#undef EXSLTCALL
#if defined(IN_LIBEXSLT) && !defined(LIBEXSLT_STATIC)
- #define EXSLTPUBFUN __declspec(dllexport)
- #define EXSLTPUBVAR __declspec(dllexport)
+ #define EXSLTPUBFUN extern __declspec(dllexport)
+ #define EXSLTPUBVAR extern __declspec(dllexport)
#else
#define EXSLTPUBFUN
#if !defined(LIBEXSLT_STATIC)
diff --git a/libxslt/xsltexports.h b/libxslt/xsltexports.h
index 99b6ac387..bbc556fb6 100644
--- a/libxslt/xsltexports.h
+++ b/libxslt/xsltexports.h
@@ -50,8 +50,8 @@
#undef XSLTPUBVAR
#undef XSLTCALL
#if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
- #define XSLTPUBFUN __declspec(dllexport)
- #define XSLTPUBVAR __declspec(dllexport)
+ #define XSLTPUBFUN extern __declspec(dllexport)
+ #define XSLTPUBVAR extern __declspec(dllexport)
#else
#define XSLTPUBFUN
#if !defined(LIBXSLT_STATIC)

View File

@ -10,6 +10,7 @@ vcpkg_from_github(
libexslt-pkgconfig.patch
fix-gcrypt-deps.patch
skip-install-docs.patch
extern_export.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

View File

@ -1,7 +1,7 @@
{
"name": "libxslt",
"version": "1.1.35",
"port-version": 1,
"port-version": 2,
"description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
"homepage": "https://github.com/GNOME/libxslt",
"license": null,

View File

@ -4278,7 +4278,7 @@
},
"libxslt": {
"baseline": "1.1.35",
"port-version": 1
"port-version": 2
},
"libyaml": {
"baseline": "0.2.5",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fb07abefc8894accd9967f41c8db983dcc031189",
"version": "1.1.35",
"port-version": 2
},
{
"git-tree": "3febc2931430356214f9a15ec06f7863ad4825d9",
"version": "1.1.35",