X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7235a82e6c0520150374c83077a82df59ec9e6e3..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/gsocket.c?ds=sidebyside diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index d47d711cc7..60f2a26d15 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -753,7 +753,7 @@ int GSocket_Write(GSocket *socket, const char *buffer, int size) */ GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags) { - if (USE_GUI()) + if (!USE_GUI()) { GSocketEventFlags result = 0; fd_set readfds; @@ -860,7 +860,7 @@ GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags) return (result & flags); } - else /* !USE_GUI() */ + else /* USE_GUI() */ { assert(socket != NULL); return flags & socket->m_detected; @@ -1464,6 +1464,10 @@ GSocketError _GAddress_Init_UNIX(GAddress *address) GSocketError GAddress_UNIX_SetPath(GAddress *address, const char *path) { +#if defined(__BORLANDC__) + /* prevents unused variable message in Borland */ + (void)path; +#endif assert (address != NULL); address->m_error = GSOCK_INVADDR; return GSOCK_INVADDR; @@ -1471,6 +1475,11 @@ GSocketError GAddress_UNIX_SetPath(GAddress *address, const char *path) GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf) { +#if defined(__BORLANDC__) + /* prevents unused variable message in Borland */ + (void)path; + (void)sbuf; +#endif assert (address != NULL); address->m_error = GSOCK_INVADDR; return GSOCK_INVADDR;