get to clean compile under vs2012

Added some missing (but existing in branch) files to libzmq11 project needed
to compile as static library by VS2012 (at least), and fixed some warnings.
One warning remains in raw_decoder.cpp, which I'm leaving for now because I'm
not sure how project owners would like to fix it.
This commit is contained in:
Evan Burkitt
2013-08-23 17:14:03 -07:00
parent 2e9385ac02
commit eaf227d4de
5 changed files with 11 additions and 7 deletions

View File

@@ -89,7 +89,7 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_,
switch (option_) {
case ZMQ_ROUTER_RAW:
if (is_int && value >= 0) {
raw_sock = value;
raw_sock = (value != 0);
if (raw_sock) {
options.recv_identity = false;
options.raw_sock = true;
@@ -100,14 +100,14 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_,
case ZMQ_ROUTER_MANDATORY:
if (is_int && value >= 0) {
mandatory = value;
mandatory = (value != 0);
return 0;
}
break;
case ZMQ_PROBE_ROUTER:
if (is_int && value >= 0) {
probe_router = value;
probe_router = (value != 0);
return 0;
}
break;