Use WRL when building with MSVC
This commit is contained in:
committed by
Vadim Zeitlin
parent
a8b726359b
commit
156eda92d7
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user