Fix a linker error when wxUSE_PROTOCOL_FILE is off

Fix a linker error for wxProtocolUsewxFileProto when wxUSE_PROTOCOL_FILE
is off but wxUSE_PROTOCOL is on.

Closes #23629.
This commit is contained in:
matyalatte 2023-06-10 09:41:48 +09:00 committed by Vadim Zeitlin
parent 58c49d06fa
commit c8fcb0be8f

View file

@ -31,7 +31,9 @@ wxIMPLEMENT_CLASS(wxURL, wxURI);
wxProtoInfo *wxURL::ms_protocols = nullptr;
// Enforce linking of protocol classes:
#if wxUSE_PROTOCOL_FILE
USE_PROTOCOL(wxFileProto)
#endif
#if wxUSE_PROTOCOL_HTTP
USE_PROTOCOL(wxHTTP)