Skip to content

Commit d28e131

Browse files
authored
Reduce the duplication.
1 parent 276f1b9 commit d28e131

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)