#endif /* __GSOCKET_STANDALONE__ */
-
#include <assert.h>
#include <string.h>
#include <stdio.h>
#define SOCKLEN_T int
#endif
+#ifdef _MSC_VER
+ /* using FD_SET results in this warning */
+ #pragma warning(disable:4127) /* conditional expression is constant */
+#endif /* Visual C++ */
+
#define CLASSNAME "_GSocket_Internal_Window_Class"
#define WINDOWNAME "_GSocket_Internal_Window_Name"
if ((bind(sck->m_fd, sck->m_local->m_addr, sck->m_local->m_len) != 0) ||
(getsockname(sck->m_fd,
sck->m_local->m_addr,
- &sck->m_local->m_len) != 0) ||
+ (SOCKLEN_T *)&sck->m_local->m_len) != 0) ||
(listen(sck->m_fd, 5) != 0))
{
closesocket(sck->m_fd);
if ((bind(sck->m_fd, sck->m_local->m_addr, sck->m_local->m_len) != 0) ||
(getsockname(sck->m_fd,
sck->m_local->m_addr,
- &sck->m_local->m_len) != 0))
+ (SOCKLEN_T *)&sck->m_local->m_len) != 0))
{
closesocket(sck->m_fd);
sck->m_fd = INVALID_SOCKET;
* -------------------------------------------------------------------------
*/
+#ifdef _MSC_VER
+ #pragma warning(disable:4100) /* unreferenced formal parameter */
+#endif /* Visual C++ */
+
GSocketError _GAddress_Init_UNIX(GAddress *address)
{
assert (address != NULL);