X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..e755eb67b62b608174a4efbb13bdd9fbebfa29a1:/include/wx/listbase.h diff --git a/include/wx/listbase.h b/include/wx/listbase.h index ef640effcb..3d4cd4da72 100644 --- a/include/wx/listbase.h +++ b/include/wx/listbase.h @@ -16,6 +16,8 @@ // #pragma interface "listctrlbase.h" #endif +#include "wx/defs.h" + #if wxUSE_LISTCTRL #include "wx/colour.h" @@ -444,7 +446,7 @@ END_DECLARE_EVENT_TYPES() typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&); #define wxListEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxListEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxListEventFunction, &func) #define wx__DECLARE_LISTEVT(evt, id, fn) \ wx__DECLARE_EVT1(wxEVT_COMMAND_LIST_ ## evt, id, wxListEventHandler(fn))