From 6a064c85d4a7115a6ae7f80eb02a6f17c1328718 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 26 Dec 2020 16:00:03 +0100 Subject: [PATCH] Compile even less code when wxUSE_WEBREQUEST==0 in the test Move the check slightly higher, there is no need to include the headers if we're not going to compile any tests anyhow. --- tests/net/webrequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: