From: Mattia Barbon Date: Sun, 14 Jul 2002 20:26:07 +0000 (+0000) Subject: Allow building wxProtocol without wxUSE_SOCKETS X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a9cb577a6f19ea0d3bf0d59c988df9e002b29110 Allow building wxProtocol without wxUSE_SOCKETS git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/protocol.cpp b/src/common/protocol.cpp index 9deef928f6..213de7ce97 100644 --- a/src/common/protocol.cpp +++ b/src/common/protocol.cpp @@ -66,6 +66,7 @@ wxProtocol::wxProtocol() { } +#if wxUSE_SOCKETS bool wxProtocol::Reconnect() { wxIPV4address addr; @@ -167,6 +168,7 @@ wxProtocolError GetLine(wxSocketBase *sock, wxString& result) { return wxPROTO_NOERR; #undef PROTO_BSIZE } +#endif // wxUSE_SOCKETS #endif // wxUSE_PROTOCOL