[zeromq-dev] [PATCH] Fix incorrect include usage on Windows

Steven McCoy steven.mccoy at miru.hk
Tue Jun 14 00:41:36 CEST 2011

On 13 June 2011 13:38, Pieter Hintjens <ph at imatix.com> wrote:

> The weird thing is that with your changes, this code in windows.hpp
> was doing the #else part (and that's where the build errors came
> from):
> //  Enable winsock (not included when WIN32_LEAN_AND_MEAN is defined).
> #if(_WIN32_WINNT >= 0x0400)
> #include <winsock2.h>
> #include <mswsock.h>
> #else
> #include <winsock.h>
> #endif
In MSVC it is *windows.h *defining _WIN32_WINNT ?  What a mess.


Using MSVC's definition tool I can see it all over the place:  sdkddkver.h,
winresrc.h, objbase.h, objidl.h


I'll have a look again.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110613/b9c81d87/attachment.htm>

More information about the zeromq-dev mailing list