X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..f014d4bf3e18198c273b3c119ad1a08d46d12c82:/include/wx/wizard.h 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))