From c687c7e61e8519c93eb4bc7ef43c5cf63671eb3e Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 3 Jul 2011 14:11:33 +0200 Subject: Fix MSVC build Signed-off-by: Martin Sustrik --- builds/msvc/libzmq/libzmq.vcproj | 12 ++++++++---- src/signaler.cpp | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/builds/msvc/libzmq/libzmq.vcproj b/builds/msvc/libzmq/libzmq.vcproj index 93961e3..1f841c2 100644 --- a/builds/msvc/libzmq/libzmq.vcproj +++ b/builds/msvc/libzmq/libzmq.vcproj @@ -410,6 +410,10 @@ RelativePath="..\..\..\src\session.cpp" > + + @@ -568,10 +572,6 @@ RelativePath="..\..\..\src\i_engine.hpp" > - - @@ -712,6 +712,10 @@ RelativePath="..\..\..\src\session.hpp" > + + diff --git a/src/signaler.cpp b/src/signaler.cpp index 2ecfb98..a511530 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -120,7 +120,7 @@ void zmq::signaler_t::send () { #if defined ZMQ_HAVE_WINDOWS unsigned char dummy = 0; - int nbytes = ::send (w, &dummy, sizeof (dummy), 0); + int nbytes = ::send (w, (char*) &dummy, sizeof (dummy), 0); wsa_assert (nbytes != SOCKET_ERROR); zmq_assert (nbytes == sizeof (dummy)); #else @@ -189,8 +189,8 @@ void zmq::signaler_t::recv () { // Attempt to read a signal. unsigned char dummy; -#if ZMQ_HAVE_WINDOWS - int nbytes = ::recv (r, &dummy, sizeof (dummy), 0); +#if defined ZMQ_HAVE_WINDOWS + int nbytes = ::recv (r, (char*) &dummy, sizeof (dummy), 0); wsa_assert (nbytes != SOCKET_ERROR); #else ssize_t nbytes = ::recv (r, &dummy, sizeof (dummy), 0); -- cgit v1.2.3