Check if wxUSE_WEBREQUEST is defined

This commit is contained in:
Maarten Bent
2021-03-18 20:49:57 +01:00
parent c82e13068a
commit 5bdd5e1432
4 changed files with 7 additions and 7 deletions

View File

@@ -10,10 +10,6 @@
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
@@ -29,6 +25,10 @@
#include "../sample.xpm"
#endif
#if !wxUSE_WEBREQUEST
#error "wxUSE_WEBREQUEST must be 1 for this sample."
#endif
class WebRequestFrame : public wxFrame
{
public:

View File

@@ -12,7 +12,7 @@
#include "wx/webrequest.h"
#if wxUSE_WEBREQUEST_CURL
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_CURL
#include "wx/private/webrequest_curl.h"

View File

@@ -12,7 +12,7 @@
#include "wx/webrequest.h"
#if wxUSE_WEBREQUEST_WINHTTP
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_WINHTTP
#include "wx/mstream.h"
#include "wx/msw/private.h"

View File

@@ -12,7 +12,7 @@
#include "wx/webrequest.h"
#if wxUSE_WEBREQUEST_URLSESSION
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_URLSESSION
#import <Foundation/Foundation.h>