]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/socket.h
correction for Mac OS X
[wxWidgets.git] / include / wx / socket.h
index a8a9ff7c021ad67cdec304cd36320342c0d667f1..4374b9b1d1990e8553b390c91ea507404c25f922 100644 (file)
@@ -348,9 +348,12 @@ public:
 
 typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&);
 
-#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 ),
 
 
 #endif