// 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;