From f98d23fd942272c8c08f8d6edb4e22e4ad1db20e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 25 Jun 2003 00:11:34 +0000 Subject: [PATCH] a quick hack to fix wxBase compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/fs_mem.h | 2 ++ src/common/fs_mem.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/wx/fs_mem.h b/include/wx/fs_mem.h index e304cd1143..d800a80782 100644 --- a/include/wx/fs_mem.h +++ b/include/wx/fs_mem.h @@ -39,7 +39,9 @@ public: // Add file to list of files stored in memory. Stored data (bitmap, text or // raw data) will be copied into private memory stream and available under // name "memory:" + filename +#if wxUSE_IMAGE static void AddFile(const wxString& filename, wxImage& image, long type); +#endif // wxUSE_IMAGE static void AddFile(const wxString& filename, const wxString& textdata); static void AddFile(const wxString& filename, const void *binarydata, size_t size); diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index 30995f3d05..70fd638425 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -172,6 +172,7 @@ bool wxMemoryFSHandlerBase::CheckHash(const wxString& filename) } +#if wxUSE_IMAGE /*static*/ void wxMemoryFSHandlerBase::AddFile(const wxString& filename, wxImage& image, long type) @@ -191,6 +192,7 @@ wxMemoryFSHandlerBase::AddFile(const wxString& filename, wxImage& image, long ty } } +#endif // wxUSE_IMAGE /*static*/ void wxMemoryFSHandlerBase::AddFile(const wxString& filename, const wxString& textdata) { -- 2.45.2