From 23a4df10fdda6ea8a2963b32bd2c4d411f7dc86d Mon Sep 17 00:00:00 2001 From: DeckerSU Date: Fri, 10 Nov 2017 19:33:26 +0400 Subject: [PATCH] changes needed to build win32 marketmaker with MSVC 2015 --- OSlibs/win/mingw.h | 19 ++++++++++++------- marketmaker.vcxproj | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/OSlibs/win/mingw.h b/OSlibs/win/mingw.h index 76802c56e..2c35aa78c 100755 --- a/OSlibs/win/mingw.h +++ b/OSlibs/win/mingw.h @@ -61,13 +61,18 @@ * @remarks - #if (defined(_M_X64) || defined(__amd64__)) && defined(WIN32) * is equivalent to #if defined(_M_X64) as _M_X64 is defined for MSVC only */ -#if !defined(_M_X64) -struct pollfd { - SOCKET fd; /* file descriptor */ - short events; /* requested events */ - short revents; /* returned events */ -}; -#endif + + +// [Decker] pollfs is already defined in winsock2.h + +//#if !defined(_M_X64) +//struct pollfd { + //SOCKET fd; /* file descriptor */ + //short events; /* requested events */ + //short revents; /* returned events */ +//}; +//#endif + #if defined(_M_X64) /* diff --git a/marketmaker.vcxproj b/marketmaker.vcxproj index b441d6ab4..0dbe62279 100644 --- a/marketmaker.vcxproj +++ b/marketmaker.vcxproj @@ -130,6 +130,7 @@ Console true true + Ws2_32.lib;Advapi32.lib;$(SolutionDir)OSlibs\win\release\pthreadVC2.lib;libcurl.lib;nanomsg.lib;%(AdditionalDependencies)