From 8b6fb0b720d01677a153cfa6f73eee439215fb72 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 24 May 2004 19:38:22 +0000 Subject: [PATCH] include global.h in all files remove unneeded headers fix warnings --- stepmania/src/ezsockets.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/stepmania/src/ezsockets.cpp b/stepmania/src/ezsockets.cpp index fc41879e02..a176110b6e 100644 --- a/stepmania/src/ezsockets.cpp +++ b/stepmania/src/ezsockets.cpp @@ -14,12 +14,9 @@ // We need the WinSock32 Library on Windows -#include +#include "global.h" #include "ezsockets.h" -#include - -using namespace std; #if defined(WIN32) #pragma comment(lib,"wsock32.lib") #endif @@ -164,7 +161,7 @@ bool EzSockets::connect( const std::string& host, unsigned short port ) bool EzSockets::CanRead() { FD_ZERO(scks); - FD_SET(sock,scks); + FD_SET((unsigned)sock,scks); if (select (0,scks,NULL,NULL,times)==0) return false; @@ -176,7 +173,7 @@ bool EzSockets::IsError() return true; FD_ZERO(scks); - FD_SET(sock,scks); + FD_SET((unsigned)sock,scks); if (select (0,NULL,NULL,scks,times)==0) return false; @@ -185,7 +182,7 @@ bool EzSockets::IsError() bool EzSockets::CanWrite() { FD_ZERO(scks); - FD_SET(sock,scks); + FD_SET((unsigned)sock,scks); if (select (0,NULL,scks,NULL,times)==0) return false;