X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7011055c55538a9f38bc265bbafab4afa3ae2981..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/common/webview.cpp diff --git a/src/common/webview.cpp b/src/common/webview.cpp index 49c9c31740..bbd6f3168f 100644 --- a/src/common/webview.cpp +++ b/src/common/webview.cpp @@ -10,7 +10,7 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#if wxUSE_WEBVIEW && (wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE) +#if wxUSE_WEBVIEW #if defined(__BORLANDC__) #pragma hdrstop @@ -18,9 +18,13 @@ #include "wx/webview.h" +#if defined(__WXOSX_COCOA__) || defined(__WXOSX_CARBON__) #include "wx/osx/webview_webkit.h" +#elif defined(__WXGTK__) #include "wx/gtk/webview_webkit.h" +#elif defined(__WXMSW__) #include "wx/msw/webview_ie.h" +#endif // DLL options compatibility check: #include "wx/app.h" @@ -112,4 +116,4 @@ wxWebView* wxWebView::New(wxWindow* parent, } } -#endif // wxUSE_WEBVIEW && (wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE) +#endif // wxUSE_WEBVIEW