From: Vadim Zeitlin Date: Wed, 30 Nov 2011 10:21:43 +0000 (+0000) Subject: Don't include all wx/xxx/webviewhistoryitem_xxx.h headers. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/37bea8d229d7e3a8e9f242cdeb19976fee125092 Don't include all wx/xxx/webviewhistoryitem_xxx.h headers. Only one of these headers is available for each platform so include at most one of them. Closes #13705. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/webview.h b/include/wx/webview.h index d84aac397e..0a70b74ee0 100644 --- a/include/wx/webview.h +++ b/include/wx/webview.h @@ -20,9 +20,15 @@ #include "wx/sharedptr.h" #include "wx/vector.h" -#include "wx/osx/webviewhistoryitem_webkit.h" -#include "wx/gtk/webviewhistoryitem_webkit.h" -#include "wx/msw/webviewhistoryitem_ie.h" +#if defined(__WXOSX__) + #include "wx/osx/webviewhistoryitem_webkit.h" +#elif defined(__WXGTK__) + #include "wx/gtk/webviewhistoryitem_webkit.h" +#elif defined(__WXMSW__) + #include "wx/msw/webviewhistoryitem_ie.h" +#else + #error "wxWebView not implemented on this platform." +#endif class wxFSFile; class wxFileSystem;