]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow building wxProtocol without wxUSE_SOCKETS
authorMattia Barbon <mbarbon@cpan.org>
Sun, 14 Jul 2002 20:26:07 +0000 (20:26 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 14 Jul 2002 20:26:07 +0000 (20:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/protocol.cpp

index 9deef928f6cd7e15693a9efe7cd4b3cc15861d02..213de7ce97eda58cd902752bbf07c1cb9aa3a54c 100644 (file)
@@ -66,6 +66,7 @@ wxProtocol::wxProtocol()
 {
 }
 
 {
 }
 
+#if wxUSE_SOCKETS
 bool wxProtocol::Reconnect()
 {
   wxIPV4address addr;
 bool wxProtocol::Reconnect()
 {
   wxIPV4address addr;
@@ -167,6 +168,7 @@ wxProtocolError GetLine(wxSocketBase *sock, wxString& result) {
   return wxPROTO_NOERR;
 #undef PROTO_BSIZE
 }
   return wxPROTO_NOERR;
 #undef PROTO_BSIZE
 }
+#endif // wxUSE_SOCKETS
 
 #endif // wxUSE_PROTOCOL
 
 
 #endif // wxUSE_PROTOCOL