diff --git a/samples/sockets/baseclient.cpp b/samples/sockets/baseclient.cpp index e389148772..50fe873796 100644 --- a/samples/sockets/baseclient.cpp +++ b/samples/sockets/baseclient.cpp @@ -27,7 +27,7 @@ #include "wx/thread.h" const wxEventType wxEVT_WORKER = wxNewEventType(); -#define EVT_WORKER(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ), +#define EVT_WORKER(func) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ), const int timeout_val = 1000; diff --git a/samples/sockets/baseserver.cpp b/samples/sockets/baseserver.cpp index a2969d66ff..1884715ee1 100644 --- a/samples/sockets/baseserver.cpp +++ b/samples/sockets/baseserver.cpp @@ -64,7 +64,7 @@ const char *GetSocketErrorMsg(int pSockError) //event sent by workers to server class //after client is served const wxEventType wxEVT_WORKER = wxNewEventType(); -#define EVT_WORKER(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ), +#define EVT_WORKER(func) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ), class WorkerEvent : public wxEvent {