From c94d669b4c66919c1e4e158deded3c9b050890f5 Mon Sep 17 00:00:00 2001 From: Yexuan Xiao Date: Wed, 4 Nov 2026 18:04:43 +0800 Subject: [PATCH 1/2] Update base_extern.h --- strings/base_extern.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings/base_extern.h b/strings/base_extern.h index a17908ac4..cff710641 100644 --- a/strings/base_extern.h +++ b/strings/base_extern.h @@ -25,7 +25,7 @@ WINRT_EXPORT __declspec(selectany) std::int32_t(__stdcall* winrt_activation_hand #endif #endif -extern "C" +export extern "C" { std::int32_t __stdcall WINRT_IMPL_RoGetActivationFactory(void* classId, winrt::guid const& iid, void** factory) noexcept WINRT_IMPL_LINK(RoGetActivationFactory, 12); std::int32_t __stdcall WINRT_IMPL_RoGetAgileReference(std::uint32_t options, winrt::guid const& iid, void* object, void** reference) noexcept WINRT_IMPL_LINK(RoGetAgileReference, 16); From d81c39425e6294e9de719717963fbd9703641c64 Mon Sep 17 00:00:00 2001 From: Yexuan Xiao Date: Wed, 4 Nov 2026 18:52:53 +0800 Subject: [PATCH 2/2] Update base_extern.h --- strings/base_extern.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/strings/base_extern.h b/strings/base_extern.h index cff710641..319343095 100644 --- a/strings/base_extern.h +++ b/strings/base_extern.h @@ -25,7 +25,11 @@ WINRT_EXPORT __declspec(selectany) std::int32_t(__stdcall* winrt_activation_hand #endif #endif -export extern "C" +// Windows.Foundation.ixx needs to access them. +#ifdef WINRT_IMPL_BUILD_MODULE +export +#endif +extern "C" { std::int32_t __stdcall WINRT_IMPL_RoGetActivationFactory(void* classId, winrt::guid const& iid, void** factory) noexcept WINRT_IMPL_LINK(RoGetActivationFactory, 12); std::int32_t __stdcall WINRT_IMPL_RoGetAgileReference(std::uint32_t options, winrt::guid const& iid, void* object, void** reference) noexcept WINRT_IMPL_LINK(RoGetAgileReference, 16);