Skip to content

Commit

Permalink
Resolve more warnings in msvc (#6702)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored Oct 17, 2020
1 parent 461e75b commit 5b8e0c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/support/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@
#define TVM_SUPPORT_SOCKET_H_

#if defined(_WIN32)

#ifndef NOMINMAX
#define NOMINMAX
#endif

#include <winsock2.h>
#include <ws2tcpip.h>
#undef NOMINMAX

using ssize_t = int;
#ifdef _MSC_VER
#pragma comment(lib, "Ws2_32.lib")
Expand Down

0 comments on commit 5b8e0c6

Please sign in to comment.