*/
#ifdef __GNUG__
-#pragma implementation
+#pragma implementation "fs_inet.h"
#endif
#include "wx/wxprec.h"
#define wxUSE_FS_INET 0
#endif
-#if wxUSE_FS_INET
+#if wxUSE_FILESYSTEM && wxUSE_FS_INET
#ifndef WXPRECOMP
#include "wx/wx.h"
wxURL url(p + wxT(":") + StripProtocolAnchor(location));
return (url.GetError() == wxURL_NOERR);
}
- else
- return FALSE;
+
+ return FALSE;
}
// Load item from cache:
s = new wxFileInputStream(info->GetTemp());
- if (s)
- {
- return new wxFSFile(s,
- right,
- info->GetMime(),
- GetAnchor(location),
- wxDateTime::Now());
- }
- else return (wxFSFile*) NULL;
+ if (!s)
+ return (wxFSFile*) NULL;
+
+ return new wxFSFile(s,
+ right,
+ info->GetMime(),
+ GetAnchor(location),
+ wxDateTime::Now());
}
IMPLEMENT_DYNAMIC_CLASS(wxFileSystemInternetModule, wxModule)
-#endif // wxUSE_FS_INET
+#endif // wxUSE_FILESYSTEM && wxUSE_FS_INET