Skip to content

Commit b7c9076

Browse files
committed
Add extern C++ to function pointer overrides to allow interop between headers and modules
1 parent ba71dcc commit b7c9076

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

strings/base_extern.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
__declspec(selectany) std::int32_t(__stdcall* winrt_to_hresult_handler)(void* address) noexcept {};
3-
__declspec(selectany) winrt::hstring(__stdcall* winrt_to_message_handler)(void* address) {};
4-
__declspec(selectany) void(__stdcall* winrt_throw_hresult_handler)(std::uint32_t lineNumber, char const* fileName, char const* functionName, void* returnAddress, winrt::hresult const result) noexcept {};
5-
__declspec(selectany) std::int32_t(__stdcall* winrt_activation_handler)(void* classId, winrt::guid const& iid, void** factory) noexcept {};
2+
extern "C++" __declspec(selectany) std::int32_t(__stdcall* winrt_to_hresult_handler)(void* address) noexcept {};
3+
extern "C++" __declspec(selectany) winrt::hstring(__stdcall* winrt_to_message_handler)(void* address) {};
4+
extern "C++" __declspec(selectany) void(__stdcall* winrt_throw_hresult_handler)(std::uint32_t lineNumber, char const* fileName, char const* functionName, void* returnAddress, winrt::hresult const result) noexcept {};
5+
extern "C++" __declspec(selectany) std::int32_t(__stdcall* winrt_activation_handler)(void* classId, winrt::guid const& iid, void** factory) noexcept {};
66

77
#if defined(_MSC_VER)
88
#ifdef _M_HYBRID

0 commit comments

Comments
 (0)