From ad91e9d35aeecdce427d8f2ebd053aee13f8f3ad Mon Sep 17 00:00:00 2001 From: matyalatte Date: Sat, 10 Jun 2023 09:41:48 +0900 Subject: [PATCH] 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) --- src/common/url.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/url.cpp b/src/common/url.cpp index f988ee51f2..2c7c15bf5a 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -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)