diff --git a/tests/net/webrequest.cpp b/tests/net/webrequest.cpp index 657e87cb04..961b8a1864 100644 --- a/tests/net/webrequest.cpp +++ b/tests/net/webrequest.cpp @@ -21,6 +21,8 @@ #include "wx/wx.h" #endif // WX_PRECOMP +#if wxUSE_WEBREQUEST + #include "wx/webrequest.h" #include "wx/filename.h" #include "wx/wfstream.h" @@ -34,8 +36,6 @@ // an environment variable, e.g.: // WX_TEST_WEBREQUEST_URL=https://httpbin.org -#if wxUSE_WEBREQUEST - class RequestFixture { public: