summaryrefslogtreecommitdiff
path: root/sockcompat.h
AgeCommit message (Collapse)Author
2019-08-09MinGW fix: Use _MSC_VER instead of _WIN32 where appropriateMarcus Geelnard
Use _MSC_VER (instead of _WIN32) for things that are specific for Visual Studio. Also remove #include <winsock2.h> from hiredis.h, as it leaks too many symbols and defines into the global namespace, which is undesirable for a public interface header. Anyone who uses the the affected parts of the hiredis API needs to include the appropriate headers anyway in order to declare struct timeval variables.
2019-04-13Fix Compile Error On Windows (Visual Studio)jinjiazhang
2019-04-01Port network layer to Winsockm
With this change, Hiredis builds with MinGW and runs on Windows.