X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e75390d4aa51b46b9217dc4699267c1345893054..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/generic/statbmpg.cpp diff --git a/src/generic/statbmpg.cpp b/src/generic/statbmpg.cpp index 8f6701dccb..735c0b9d32 100644 --- a/src/generic/statbmpg.cpp +++ b/src/generic/statbmpg.cpp @@ -18,8 +18,6 @@ #include "wx/generic/statbmpg.h" -IMPLEMENT_DYNAMIC_CLASS(wxGenericStaticBitmap, wxStaticBitmapBase) - bool wxGenericStaticBitmap::Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos, const wxSize& size, @@ -40,5 +38,12 @@ void wxGenericStaticBitmap::OnPaint(wxPaintEvent& WXUNUSED(event)) dc.DrawBitmap(m_bitmap, 0, 0, true); } +// under OSX_cocoa is a define, avoid duplicate info +#ifndef wxGenericStaticBitmap + +IMPLEMENT_DYNAMIC_CLASS(wxGenericStaticBitmap, wxStaticBitmapBase) + +#endif + #endif // wxUSE_STATBMP