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) {