Commit 23e58e30 authored by Ian Barber's avatar Ian Barber

Merge pull request #697 from pijyoi/master

bugfixes for mingw compilation
parents d33a3ad0 55bfe7db
......@@ -20,7 +20,7 @@
#include "testutil.hpp"
#if defined (ZMQ_HAVE_WINDOWS)
# include <WinSock2.h>
# include <winsock2.h>
# include <stdexcept>
#else
# include <sys/socket.h>
......
......@@ -31,8 +31,10 @@
#include <string>
#if defined _WIN32
# include <crtdbg.h>
# pragma warning(disable:4996)
# if defined _MSC_VER
# include <crtdbg.h>
# pragma warning(disable:4996)
# endif
#else
# include <unistd.h>
# include <signal.h>
......@@ -249,9 +251,11 @@ void close_zero_linger (void *socket)
void setup_test_environment()
{
#if defined _WIN32
# if defined _MSC_VER
_set_abort_behavior( 0, _WRITE_ABORT_MSG);
_CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
# endif
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment