On 21 May 2012 21:54, Steven McCoy <[email protected]> wrote: > Not supported with MSVC, needs an alternative method. C99 route is an > alternative: SIZE_MAX. I'm sure something old hates that. > > https://github.com/zeromq/libzmq/blob/master/src/decoder.cpp#L117 > > Yay, usual crap with "windows.hpp" defining max() as a macro.
diff --git a/src/decoder.cpp b/src/decoder.cpp index 30714da..fa7bc72 100644 --- a/src/decoder.cpp +++ b/src/decoder.cpp @@ -23,6 +23,11 @@ #include <string.h> #include <limits> +#include "platform.hpp" +#if defined ZMQ_HAVE_WINDOWS +#include "windows.hpp" +#endif + #include "decoder.hpp" #include "session_base.hpp" #include "likely.hpp" -- Steve-o
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
