forked from mirrors/gecko-dev
In the time since we last bumped MinGW many of our patches no longer apply. The enum patch had one of the fixes incorporated, but not the other. The winrt patch added several files that were added to MinGW - but not all the classes we need were added, so I've copied them into a new patch in a subsequent commit. While we're here, also add the mingw patches as resources so they trigger rebuilds when edited. Differential Revision: https://phabricator.services.mozilla.com/D168831
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
From 753c3ad7018936ef9a9d2af8b75efbfa14c149b7 Mon Sep 17 00:00:00 2001
|
|
From: Tom Ritter <tom@ritter.vg>
|
|
Date: Thu, 2 Feb 2023 12:26:22 -0500
|
|
Subject: [PATCH 2/7] Add back the IUnknown_QI functions
|
|
|
|
---
|
|
mingw-w64-headers/include/unknwn.h | 23 +++++++++++++++++++++++
|
|
1 file changed, 23 insertions(+)
|
|
|
|
diff --git a/mingw-w64-headers/include/unknwn.h b/mingw-w64-headers/include/unknwn.h
|
|
index f3ada04a2..f33e8f270 100644
|
|
--- a/mingw-w64-headers/include/unknwn.h
|
|
+++ b/mingw-w64-headers/include/unknwn.h
|
|
@@ -169,6 +169,29 @@ static __WIDL_INLINE ULONG IUnknown_Release(IUnknown* This) {
|
|
|
|
#endif
|
|
|
|
+HRESULT STDMETHODCALLTYPE IUnknown_QueryInterface_Proxy(
|
|
+ IUnknown* This,
|
|
+ REFIID riid,
|
|
+ void **ppvObject);
|
|
+void __RPC_STUB IUnknown_QueryInterface_Stub(
|
|
+ IRpcStubBuffer* This,
|
|
+ IRpcChannelBuffer* pRpcChannelBuffer,
|
|
+ PRPC_MESSAGE pRpcMessage,
|
|
+ DWORD* pdwStubPhase);
|
|
+ULONG STDMETHODCALLTYPE IUnknown_AddRef_Proxy(
|
|
+ IUnknown* This);
|
|
+void __RPC_STUB IUnknown_AddRef_Stub(
|
|
+ IRpcStubBuffer* This,
|
|
+ IRpcChannelBuffer* pRpcChannelBuffer,
|
|
+ PRPC_MESSAGE pRpcMessage,
|
|
+ DWORD* pdwStubPhase);
|
|
+ULONG STDMETHODCALLTYPE IUnknown_Release_Proxy(
|
|
+ IUnknown* This);
|
|
+void __RPC_STUB IUnknown_Release_Stub(
|
|
+ IRpcStubBuffer* This,
|
|
+ IRpcChannelBuffer* pRpcChannelBuffer,
|
|
+ PRPC_MESSAGE pRpcMessage,
|
|
+ DWORD* pdwStubPhase);
|
|
|
|
#endif /* __IUnknown_INTERFACE_DEFINED__ */
|
|
|
|
--
|
|
2.25.1
|
|
|