X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e08ee38353a26f5305148257028d8ad0f1fa75cc..2b8f5a2488b051daf6f9c0d161e57e0d1dabeab0:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index cb112f0642..608ccd38d4 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -33,6 +33,7 @@ #include "wx/utils.h" #include "wx/module.h" #include "wx/log.h" +#include "wx/intl.h" #include #include @@ -45,7 +46,7 @@ #include "wx/socket.h" -#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMOTIF__) +#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMOTIF__) || defined(__WXMAC__) #define PROCESS_EVENTS() wxYield() #elif defined(__WXGTK__) #include @@ -315,7 +316,7 @@ wxSocketBase& wxSocketBase::ReadMsg(char* buffer, wxUint32 nbytes) if (sig != 0xfeeddead) { - wxLogMessage(wxT("Warning: invalid signature returned to ReadMsg")); + wxLogWarning( _("TCP: invalid signature returned to ReadMsg.")); goto exit; } @@ -451,8 +452,8 @@ wxUint32 wxSocketBase::DeferWrite(const char *buffer, wxUint32 nbytes) m_defer_timer = NULL; m_defering = NO_DEFER; - wxString s; - s.Printf(wxT("Saliendo de DeferWrite: total %d bytes"), nbytes-m_defer_nbytes); + //wxString s; + //s.Printf(wxT("Saliendo de DeferWrite: total %d bytes"), nbytes-m_defer_nbytes); //wxLogMessage(s); return nbytes-m_defer_nbytes;