X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..d3e0ffbcd01cd6172234f9dc14f870ed6e1125cd:/include/wx/wizard.h?ds=inline diff --git a/include/wx/wizard.h b/include/wx/wizard.h index 3fe354b377..a7d0250f1b 100644 --- a/include/wx/wizard.h +++ b/include/wx/wizard.h @@ -17,6 +17,8 @@ #ifndef _WX_WIZARD_H_ #define _WX_WIZARD_H_ +#include "wx/defs.h" + #if wxUSE_WIZARDDLG // ---------------------------------------------------------------------------- @@ -297,7 +299,7 @@ END_DECLARE_EVENT_TYPES() typedef void (wxEvtHandler::*wxWizardEventFunction)(wxWizardEvent&); #define wxWizardEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxWizardEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxWizardEventFunction, &func) #define wx__DECLARE_WIZARDEVT(evt, id, fn) \ wx__DECLARE_EVT1(wxEVT_WIZARD_ ## evt, id, wxWizardEventHandler(fn))