]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxXRC compilation with --disable-filesystem (bug #10580)
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 16 Mar 2009 13:18:27 +0000 (13:18 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 16 Mar 2009 13:18:27 +0000 (13:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/xrc/xmlres.h
src/xrc/xmlres.cpp

index c130d915cfa051da0055244e4f353ba7a75f160f..0f0b69aa92bb8e92a9dc57e216f0c34d01795641 100644 (file)
@@ -31,6 +31,8 @@
 
 #include "wx/xml/xml.h"
 
+class WXDLLIMPEXP_FWD_BASE wxFileName;
+
 class WXDLLIMPEXP_FWD_CORE wxMenu;
 class WXDLLIMPEXP_FWD_CORE wxMenuBar;
 class WXDLLIMPEXP_FWD_CORE wxDialog;
index fc2fa3d3ce022d5fb52372a6f6e8314ba18abe0e..075489d9e7cecbd6809d58d921e0e4d2a02b9d61 100644 (file)
@@ -180,7 +180,11 @@ bool wxXmlResource::IsArchive(const wxString& filename)
 
 bool wxXmlResource::LoadFile(const wxFileName& file)
 {
+#if wxUSE_FILESYSTEM
     return Load(wxFileSystem::FileNameToURL(file));
+#else
+    return Load(file.GetFullPath());
+#endif
 }
 
 bool wxXmlResource::LoadAllFiles(const wxString& dirname)