diff --git a/tests/controls/webtest.cpp b/tests/controls/webtest.cpp index 7083d063bb..7ab8a7570e 100644 --- a/tests/controls/webtest.cpp +++ b/tests/controls/webtest.cpp @@ -9,7 +9,7 @@ #include "testprec.h" -#if wxUSE_WEBVIEW +#if wxUSE_WEBVIEW && (wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE) #ifdef __BORLANDC__ #pragma hdrstop @@ -244,4 +244,4 @@ void WebTestCase::RunScript() CPPUNIT_ASSERT_EQUAL("Hello World!", m_browser->GetPageText()); } -#endif //wxUSE_WEBVIEW +#endif //wxUSE_WEBVIEW && (wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE)