]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filesys.cpp
bump subrelease number
[wxWidgets.git] / src / common / filesys.cpp
index 2d44cf8c5fc5028037469240f4346b75b17d377a..57fc6e3712e92e001da5e259d84a77f10a6eba5d 100644 (file)
@@ -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;