Skip to content

Commit 249b4a0

Browse files
authored
Merge pull request #170 from NAIVEddd/patch-1
Reduce the duplication.
2 parents 276f1b9 + d28e131 commit 249b4a0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

zmq.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,10 @@ namespace zmq
475475
xsub = ZMQ_XSUB,
476476
push = ZMQ_PUSH,
477477
pull = ZMQ_PULL,
478-
#if ZMQ_VERSION_MAJOR < 4
479-
pair = ZMQ_PAIR
480-
#else
481-
pair = ZMQ_PAIR,
482-
stream = ZMQ_STREAM
478+
#if ZMQ_VERSION_MAJOR >= 4
479+
stream = ZMQ_STREAM,
483480
#endif
481+
pair = ZMQ_PAIR
484482
};
485483
#endif
486484

0 commit comments

Comments
 (0)