Skip to content

Commit fa2f2c6

Browse files
committed
Merge pull request #51 from ligouras/master
Fix backward compatibility
2 parents a88bf3e + 05a0256 commit fa2f2c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zmq.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,12 @@ namespace zmq
417417
xsub = ZMQ_XSUB,
418418
push = ZMQ_PUSH,
419419
pull = ZMQ_PULL,
420+
#if ZMQ_VERSION_MAJOR < 4
421+
pair = ZMQ_PAIR
422+
#else
420423
pair = ZMQ_PAIR,
421424
stream = ZMQ_STREAM
425+
#endif
422426
};
423427
#endif
424428

0 commit comments

Comments
 (0)