X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d8278ea644f99851bcfa54fa84e7313e51f5610..d3e780ecdf69233c872d51216eedbc64a1b6db25:/src/unix/gsocket.c diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index dc6c7e5702..16eae12743 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -261,7 +261,7 @@ GSocket *GSocket_new(void) void GSocket_close(GSocket *socket) { _GSocket_Disable_Events(socket); -// gsockosx.c calls CFSocketInvalidate which closes the socket for us + /* gsockosx.c calls CFSocketInvalidate which closes the socket for us */ #if !(defined(__DARWIN__) && (defined(__WXMAC__) || defined(__WXCOCOA__))) close(socket->m_fd); #endif @@ -1616,8 +1616,10 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname) { #else /* Use gethostbyname by default */ - int val = 1; //VA doesn't like constants in conditional expressions at all +#ifndef __WXMAC__ + int val = 1; /* VA doesn't like constants in conditional expressions */ if (val) +#endif { #endif struct in_addr *array_addr;