X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..1857c88d2624f37590be3b13c33f5cf9449e7a3b:/src/common/sckfile.cpp diff --git a/src/common/sckfile.cpp b/src/common/sckfile.cpp index a36b7756ce..c9f723a145 100644 --- a/src/common/sckfile.cpp +++ b/src/common/sckfile.cpp @@ -8,7 +8,7 @@ // Copyright: (c) 1997, 1998 Guilhem Lavaux // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "sckfile.h" #endif @@ -43,7 +43,7 @@ wxFileProto::~wxFileProto() wxInputStream *wxFileProto::GetInputStream(const wxString& path) { - return new wxFileInputStream(path); + return new wxFileInputStream(wxURL::ConvertFromURI(path)); } #endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE