#define EVT_SOCKET(id, func) \
DECLARE_EVENT_TABLE_ENTRY( wxEVT_SOCKET, id, -1, \
- (wxObjectEventFunction) \
- (wxEventFunction) \
- (wxSocketEventFunction) & func, \
- (wxObject *) NULL ),
+ (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxSocketEventFunction, & func ), \
+ (wxObject *) NULL ),
#endif