]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/listbase.h
Warning fixes for Cygwin
[wxWidgets.git] / include / wx / listbase.h
index ef640effcbcf39a5d9c71558eb167697f50261e5..3d4cd4da72b383d07dce82f0bf4f50204b0fe661 100644 (file)
@@ -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))