Fix compilation under dll builds. Wrap source files in wxUSE_WEB checks to allow minimal builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#if wxUSE_WEB
|
||||
|
||||
#if defined(__BORLANDC__)
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
@@ -24,8 +26,8 @@
|
||||
#include "wx/app.h"
|
||||
WX_CHECK_BUILD_OPTIONS("wxWEB")
|
||||
|
||||
extern WXDLLEXPORT_DATA(const char) wxWebViewNameStr[] = "wxWebView";
|
||||
extern WXDLLEXPORT_DATA(const char) wxWebViewDefaultURLStr[] = "about:blank";
|
||||
extern WXDLLIMPEXP_DATA_WEB(const char) wxWebViewNameStr[] = "wxWebView";
|
||||
extern WXDLLIMPEXP_DATA_WEB(const char) wxWebViewDefaultURLStr[] = "about:blank";
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxWebNavigationEvent, wxCommandEvent)
|
||||
|
||||
@@ -122,3 +124,5 @@ wxWebView* wxWebView::New(wxWindow* parent,
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // wxUSE_WEB
|
||||
|
Reference in New Issue
Block a user