mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-02 09:49:45 +02:00
Reduce the duplication.
This commit is contained in:
parent
276f1b91c7
commit
d28e13115d
8
zmq.hpp
8
zmq.hpp
@ -475,12 +475,10 @@ namespace zmq
|
|||||||
xsub = ZMQ_XSUB,
|
xsub = ZMQ_XSUB,
|
||||||
push = ZMQ_PUSH,
|
push = ZMQ_PUSH,
|
||||||
pull = ZMQ_PULL,
|
pull = ZMQ_PULL,
|
||||||
#if ZMQ_VERSION_MAJOR < 4
|
#if ZMQ_VERSION_MAJOR >= 4
|
||||||
pair = ZMQ_PAIR
|
stream = ZMQ_STREAM,
|
||||||
#else
|
|
||||||
pair = ZMQ_PAIR,
|
|
||||||
stream = ZMQ_STREAM
|
|
||||||
#endif
|
#endif
|
||||||
|
pair = ZMQ_PAIR
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user