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