From: Steve Lamerton Date: Wed, 14 Sep 2011 12:39:30 +0000 (+0000) Subject: Cause a compile time error in the wxWebView sample if no backend exists. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4794f127cd5a9fa828ec662ee16088216c3f736f Cause a compile time error in the wxWebView sample if no backend exists. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index 17dca1d8c5..bcadb595b6 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -22,6 +22,10 @@ #include "wx/wx.h" #endif +#if !wxUSE_WEBVIEW_WEBKIT && !wxUSE_WEBVIEW_IE +#error "A wxWebView backend is required by this sample" +#endif + #include "wx/artprov.h" #include "wx/notifmsg.h" #include "wx/settings.h"