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.

(cherry picked from commit c8fcb0be8ff74fef5e9f0efcbdd58414a79287cd)
This commit is contained in:
matyalatte 2023-06-10 09:41:48 +09:00 committed by Vadim Zeitlin
parent efd3aebb3f
commit ad91e9d35a

View File

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