X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4368b1a640fde01f92a675f2e159a8a71d5c0a66..2d36b3d84768e49e8693ba1c42f8358bb45b1f0f:/src/msw/gsocket.c diff --git a/src/msw/gsocket.c b/src/msw/gsocket.c index 2ca87dd305..450ce2b844 100644 --- a/src/msw/gsocket.c +++ b/src/msw/gsocket.c @@ -30,8 +30,8 @@ #include #ifndef __GSOCKET_STANDALONE__ -# include "wx/defs.h" -# include "wx/setup.h" +# include "wx/platform.h" +# include "wx/setup.h" #endif #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) @@ -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;