diff options
author | Martin Sustrik <sustrik@fastmq.com> | 2009-09-22 12:08:18 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.com> | 2009-09-22 12:08:18 +0200 |
commit | a0db7f6b811e687eda452a7de9f5db112f715544 (patch) | |
tree | bb4e2ef6e77b3348373f826eb8c99d406cdb06c8 /src | |
parent | e136d923b7060ef64d44264f88e49057e6638f31 (diff) |
POSIX error codes unsupported on win platform faked
Diffstat (limited to 'src')
-rw-r--r-- | src/zmq.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp index d6f7023..2dfdd48 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -39,6 +39,12 @@ const char *zmq_strerror (int errnum_) { switch (errnum_) { +#if defined ZMQ_HAVE_WINDOWS + case ENOTSUP: + return "Not supported"; + case EPROTONOSUPPORT: + return "Protocol not supported"; +#endif case EMTHREAD: return "Number of preallocated application threads exceeded"; case EFSM: @@ -46,7 +52,14 @@ const char *zmq_strerror (int errnum_) case ENOCOMPATPROTO: return "The protocol is not compatible with the socket type"; default: +#if defined _MSC_VER +#pragma warning (push) +#pragma warning (disable:4996) +#endif return strerror (errnum_); +#if defined _MSC_VER +#pragma warning (pop) +#endif } } |