From bc450ccdff0c65ac0ef7bbb76137981fcccf0fe6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Oct 1999 19:31:23 +0000 Subject: [PATCH] a better compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/socket.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/socket.h b/include/wx/socket.h index 05bc0c2c46..52bc77a66a 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -75,7 +75,8 @@ enum { wxSOCKET_BLOCK = 4 }; -typedef int wxSockFlags; +// this is ugly but necessary for backwards compatibility +#define wxSockFlags wxSocketBase::wxSockFlags // ------------------------------------------------------------------------ // wxSocket base @@ -96,6 +97,7 @@ public: }; // Type of request + typedef int wxSockFlags; enum wxSockType { SOCK_CLIENT, SOCK_SERVER, SOCK_INTERNAL, SOCK_UNINIT }; typedef void (*wxSockCbk)(wxSocketBase& sock, wxSocketNotify evt, char *cdata); -- 2.45.2