Fix compilation of wxIconBundle in some particular minimal builds.

Let the code compile when wxUSE_STREAMS==1 but wxUSE_FILE and wxUSE_FFILE are
both 0.

Closes #10900.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-04-12 00:36:31 +00:00
parent 1935acd7a5
commit 89e1de6441
2 changed files with 13 additions and 0 deletions

View File

@@ -58,11 +58,14 @@ wxIconBundle::wxIconBundle()
}
#if wxUSE_STREAMS && wxUSE_IMAGE
#if wxUSE_FFILE || wxUSE_FILE
wxIconBundle::wxIconBundle(const wxString& file, wxBitmapType type)
: wxGDIObject()
{
AddIcon(file, type);
}
#endif // wxUSE_FFILE || wxUSE_FILE
wxIconBundle::wxIconBundle(wxInputStream& stream, wxBitmapType type)
: wxGDIObject()
@@ -141,6 +144,8 @@ void DoAddIcon(wxIconBundle& bundle,
} // anonymous namespace
#if wxUSE_FFILE || wxUSE_FILE
void wxIconBundle::AddIcon(const wxString& file, wxBitmapType type)
{
#ifdef __WXMAC__
@@ -169,6 +174,8 @@ void wxIconBundle::AddIcon(const wxString& file, wxBitmapType type)
);
}
#endif // wxUSE_FFILE || wxUSE_FILE
void wxIconBundle::AddIcon(wxInputStream& stream, wxBitmapType type)
{
DoAddIcon(*this, stream, type, _("Failed to load image %d from stream."));