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.
This commit is contained in:
@@ -21,6 +21,8 @@
|
|||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
|
#if wxUSE_WEBREQUEST
|
||||||
|
|
||||||
#include "wx/webrequest.h"
|
#include "wx/webrequest.h"
|
||||||
#include "wx/filename.h"
|
#include "wx/filename.h"
|
||||||
#include "wx/wfstream.h"
|
#include "wx/wfstream.h"
|
||||||
@@ -34,8 +36,6 @@
|
|||||||
// an environment variable, e.g.:
|
// an environment variable, e.g.:
|
||||||
// WX_TEST_WEBREQUEST_URL=https://httpbin.org
|
// WX_TEST_WEBREQUEST_URL=https://httpbin.org
|
||||||
|
|
||||||
#if wxUSE_WEBREQUEST
|
|
||||||
|
|
||||||
class RequestFixture
|
class RequestFixture
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user