Check if wxUSE_WEBREQUEST is defined
This commit is contained in:
@@ -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:
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "wx/webrequest.h"
|
||||
|
||||
#if wxUSE_WEBREQUEST_CURL
|
||||
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_CURL
|
||||
|
||||
#include "wx/private/webrequest_curl.h"
|
||||
|
||||
|
@@ -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"
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "wx/webrequest.h"
|
||||
|
||||
#if wxUSE_WEBREQUEST_URLSESSION
|
||||
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_URLSESSION
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
|
Reference in New Issue
Block a user