diff --git a/include/wx/generic/animate.h b/include/wx/generic/animate.h index 33a3a84c74..967fe18d30 100644 --- a/include/wx/generic/animate.h +++ b/include/wx/generic/animate.h @@ -23,9 +23,11 @@ WX_DECLARE_LIST_WITH_DECL(wxAnimationDecoder, wxAnimationDecoderList, class WXDL class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase { public: +#if wxABI_VERSION >= 20810 wxAnimation() {} wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) { LoadFile(name, type); } +#endif virtual bool IsOk() const { return m_refData != NULL; } diff --git a/include/wx/gtk/animate.h b/include/wx/gtk/animate.h index 67a5f6d1b3..461b9fecac 100644 --- a/include/wx/gtk/animate.h +++ b/include/wx/gtk/animate.h @@ -27,8 +27,10 @@ typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter; class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase { public: +#if wxABI_VERSION >= 20810 wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) : m_pixbuf(NULL) { LoadFile(name, type); } +#endif wxAnimation(GdkPixbufAnimation *p = NULL); wxAnimation(const wxAnimation&); ~wxAnimation() { UnRef(); }