X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5949d30725e8af5b7938c86102b3e37da7caedd2..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/common/filesys.cpp?ds=inline diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 2d44cf8c5f..57fc6e3712 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -214,7 +214,13 @@ wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& // we need to check whether we can really read from this file, otherwise // wxFSFile is not going to work +#if wxUSE_FILE + wxFileInputStream *is = new wxFileInputStream(fullpath); +#elif wxUSE_FFILE wxFFileInputStream *is = new wxFFileInputStream(fullpath); +#else +#error One of wxUSE_FILE or wxUSE_FFILE must be set to 1 for wxFSHandler to work +#endif if ( !is->Ok() ) { delete is;