prefer wxFFile to wxFile if both are available, for better performance (see bug #1736365)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -215,10 +215,10 @@ 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
|
||||
#if wxUSE_FFILE
|
||||
wxFFileInputStream *is = new wxFFileInputStream(fullpath);
|
||||
#elif wxUSE_FILE
|
||||
wxFileInputStream *is = new wxFileInputStream(fullpath);
|
||||
#else
|
||||
#error One of wxUSE_FILE or wxUSE_FFILE must be set to 1 for wxFSHandler to work
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user