From: Vadim Zeitlin Date: Fri, 26 Jan 2001 22:26:45 +0000 (+0000) Subject: compilation fix for recent event changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b7245f129a1d9bf8976144df02c66bb42a5c4fcc compilation fix for recent event changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/spinbutt.h b/include/wx/spinbutt.h index 5df76fb0a3..76a7b8b187 100644 --- a/include/wx/spinbutt.h +++ b/include/wx/spinbutt.h @@ -113,18 +113,12 @@ public: typedef void (wxEvtHandler::*wxSpinEventFunction)(wxSpinEvent&); // macros for handling spin events -#ifndef EVT_SPIN_UP #define EVT_SPIN_UP(id, func) \ - wxEventTableEntry( wxEVT_SCROLL_LINEUP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func ), -#endif -#ifndef EVT_SPIN_DOWN + wxEventTableEntry( wxEVT_SCROLL_LINEUP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func, NULL ), #define EVT_SPIN_DOWN(id, func) \ - wxEventTableEntry( wxEVT_SCROLL_LINEDOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func ), -#endif -#ifndef EVT_SPIN + wxEventTableEntry( wxEVT_SCROLL_LINEDOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func, NULL ), #define EVT_SPIN(id, func) \ - wxEventTableEntry( wxEVT_SCROLL_THUMBTRACK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func ), -#endif + wxEventTableEntry( wxEVT_SCROLL_THUMBTRACK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func, NULL ), #endif // wxUSE_SPINBTN