[zeromq-dev] Moving to 0MQ/3.0, yes or no?
Reuben Morais
reuben.morais at gmail.com
Mon Apr 11 15:53:39 CEST 2011
Martin,
On Mon, Apr 11, 2011 at 6:41 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:
>
> One additional comment is that in POSIX the return type from these
> functions is ssize_t. The reason I've used int at the moment is that
> return value on Windows is int and ssize_t is not even defined :|
>
> The alternative would be to do something like:
>
> #if defined ZMQ_HAVE_WINDOWS
> #define ssize_t int
> #else
> #include <sys/types.h>
> #endif
>
> Thoughts anyone?
>
>
The MSVC equivalent is SSIZE_T, from BaseTsd.h.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110411/e9909b81/attachment.htm>
More information about the zeromq-dev
mailing list