Use WRL when building with MSVC

This commit is contained in:
Maarten Bent
2021-02-21 21:07:13 +01:00
committed by Vadim Zeitlin
parent a8b726359b
commit 156eda92d7

View File

@@ -27,6 +27,11 @@
#include "wx/msw/private/webview_edge.h"
#include <objbase.h>
#ifdef __VISUALC__
#include <wrl/event.h>
using namespace Microsoft::WRL;
#else
#include <atomic>
template <typename baseT, typename ...argTs>
@@ -116,6 +121,7 @@ wxCOMPtr<baseT> Callback(contextT* ctx, HRESULT(contextT::* mthd)(argTs...))
{
return wxCOMPtr<baseT>(new CInvokableMethod<baseT, contextT, argTs...>(ctx, mthd));
}
#endif // !__VISUALC__
wxIMPLEMENT_DYNAMIC_CLASS(wxWebViewEdge, wxWebView);