X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3bf7524f394af039efe196a186f7969cbabcc19..dbd22c6a0e86a258fc20c4a7d3cb6b45f22691c6:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index ee5df5f03e..864ba4f96d 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -323,10 +323,8 @@ typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&); #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