Skip to content

Commit

Permalink
Updating lib.zmq: Backwards compatability for libzmq v3
Browse files Browse the repository at this point in the history
  • Loading branch information
metadings committed Dec 14, 2016
1 parent 1ae92f8 commit 110003c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/zmq.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ static zmq()
{
// Backwards compatability for v3

sizeof_zmq_msg_t = sizeof_zmq_msg_t_v3;

zmq.ctx_shutdown = (ctxPtr) => { throw VersionNotSupported("zmq_ctx_shutdown", "v4"); };
zmq.msg_gets = (msgPtr, propertyPtr) => { throw VersionNotSupported("zmq_msg_gets", "v4"); };
zmq.has = (capabilityPtr) => { throw VersionNotSupported("zmq_has", "v4"); };
Expand Down

0 comments on commit 110003c

Please sign in to comment.