using wxURL now enforces linking http.o, ftp.o and sckfile.o
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0ea48a1f23
commit
f92f546c44
@ -9,11 +9,12 @@ wxWindows 2 Change Log
|
||||
|
||||
wxBase:
|
||||
|
||||
- fixed problem with wxURL when using static version of the library
|
||||
- wxZipFSHandler::FindFirst() and FindNext() now correctly list directories
|
||||
- wxMimeTypesManager now can create file associations too
|
||||
- wxCopyFile() respects the file permissions (Roland Scholz)
|
||||
- wxFTP::GetFileSize() added (Søren Erland Vestø)
|
||||
- wxDateTime::IsSameDate() bug fixed
|
||||
- wxZipFSHandler::FindFirst() and FindNext() now correctly list directories
|
||||
|
||||
All (GUI):
|
||||
|
||||
|
@ -96,7 +96,15 @@ public: \
|
||||
static wxProtoInfo g_proto_##class;
|
||||
|
||||
#define IMPLEMENT_PROTOCOL(class, name, serv, host) \
|
||||
wxProtoInfo class::g_proto_##class(name, serv, host, CLASSINFO(class));
|
||||
wxProtoInfo class::g_proto_##class(name, serv, host, CLASSINFO(class)); \
|
||||
bool wxProtocolUse##class = TRUE;
|
||||
|
||||
#define USE_PROTOCOL(class) \
|
||||
extern bool wxProtocolUse##class ; \
|
||||
static struct wxProtocolUserFor##class \
|
||||
{ \
|
||||
wxProtocolUserFor##class() { wxProtocolUse##class = TRUE; } \
|
||||
} wxProtocolDoUse##class;
|
||||
|
||||
class WXDLLEXPORT wxProtoInfo : public wxObject
|
||||
{
|
||||
|
@ -35,6 +35,11 @@ IMPLEMENT_CLASS(wxURL, wxObject)
|
||||
// Protocols list
|
||||
wxProtoInfo *wxURL::ms_protocols = NULL;
|
||||
|
||||
// Enforce linking of protocol classes:
|
||||
USE_PROTOCOL(wxHTTP)
|
||||
USE_PROTOCOL(wxFTP)
|
||||
USE_PROTOCOL(wxFileProto)
|
||||
|
||||
#if wxUSE_SOCKETS
|
||||
wxHTTP *wxURL::ms_proxyDefault = NULL;
|
||||
bool wxURL::ms_useDefaultProxy = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user