Check if wxUSE_WEBREQUEST is defined
This commit is contained in:
@@ -10,10 +10,6 @@
|
|||||||
// For compilers that support precompilation, includes "wx/wx.h".
|
// For compilers that support precompilation, includes "wx/wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
|
||||||
#pragma hdrstop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -29,6 +25,10 @@
|
|||||||
#include "../sample.xpm"
|
#include "../sample.xpm"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !wxUSE_WEBREQUEST
|
||||||
|
#error "wxUSE_WEBREQUEST must be 1 for this sample."
|
||||||
|
#endif
|
||||||
|
|
||||||
class WebRequestFrame : public wxFrame
|
class WebRequestFrame : public wxFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "wx/webrequest.h"
|
#include "wx/webrequest.h"
|
||||||
|
|
||||||
#if wxUSE_WEBREQUEST_CURL
|
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_CURL
|
||||||
|
|
||||||
#include "wx/private/webrequest_curl.h"
|
#include "wx/private/webrequest_curl.h"
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "wx/webrequest.h"
|
#include "wx/webrequest.h"
|
||||||
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP
|
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_WINHTTP
|
||||||
|
|
||||||
#include "wx/mstream.h"
|
#include "wx/mstream.h"
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "wx/webrequest.h"
|
#include "wx/webrequest.h"
|
||||||
|
|
||||||
#if wxUSE_WEBREQUEST_URLSESSION
|
#if wxUSE_WEBREQUEST && wxUSE_WEBREQUEST_URLSESSION
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user