sources/main.cpp

changeset 93
1ea012a6e1ec
parent 89
777b2a10b835
child 109
e4966d7e615d
--- a/sources/main.cpp	Thu Jul 23 02:35:13 2015 +0300
+++ b/sources/main.cpp	Thu Jul 23 17:39:52 2015 +0300
@@ -28,15 +28,13 @@
 	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-#include "main.h"
-
 #ifndef _WIN32
 # include <sys/select.h>
 #else
 # include <winsock2.h>
 #endif
 
-#include <time.h>
+#include "main.h"
 #include "network/rconsession.h"
 #include "huffman.h"
 #include "interface.h"
@@ -87,7 +85,7 @@
 			FD_SET (0, &fdset);
 
 			int fd = iface.get_session()->socket()->file_descriptor();
-			highest = max (highest, fd);
+			highest = zfc::max (highest, fd);
 			FD_SET (fd, &fdset);
 
 			select (highest + 1, &fdset, nullptr, nullptr, &timeout);

mercurial