From b812e1648c064e0a9eab1f30a12a1beefb33890c Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Fri, 3 Nov 2017 22:36:43 +0300 Subject: [PATCH] #75 Windows build (cherry picked from commit ec720bfb253b71fa612b4b897e06d61929510f44) --- easy_profiler_core/easy_socket.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/easy_profiler_core/easy_socket.cpp b/easy_profiler_core/easy_socket.cpp index 51a6ce3..05f6308 100644 --- a/easy_profiler_core/easy_socket.cpp +++ b/easy_profiler_core/easy_socket.cpp @@ -42,11 +42,15 @@ limitations under the License. #include #include #include +#include #if defined(_WIN32) # pragma comment (lib, "Ws2_32.lib") # pragma comment (lib, "Mswsock.lib") # pragma comment (lib, "AdvApi32.lib") +# ifdef max +# undef max +# endif #else # include # include