[zeromq-dev] a little patch for clock.cpp
Martin Lucina
mato at kotelna.sk
Wed Oct 13 16:22:00 CEST 2010
sustrik at moloch.sk said:
> Hi Oleg,
> > I try to build last git in MSVC 2005 but compiler not found __rdtsc ()
> > fucntion. I make changes in clock.cpp and send patch file.
> b
> Two issues:
>
> 1. I believe _MSC_VER should be used instead of ZMQ_HAVE_WINDOWS to keep
> the MinGW build OK. (Not sure about Cygwin though...)
_MSC_VER is only for the ZMQ_EXPORT and related stuff required in zmq.h
since that does not include platform.hpp thus ZMQ_HAVE_WINDOWS is not
defined there.
Everything else should use ZMQ_HAVE_WINDOWS.
-mato
More information about the zeromq-dev
mailing list