From: Vadim Zeitlin Date: Thu, 21 Oct 1999 19:31:23 +0000 (+0000) Subject: a better compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc450ccdff0c65ac0ef7bbb76137981fcccf0fe6?ds=inline a better compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);