Adding support for zmq 2.0.7 with a hacky preprocessor check

lua-zmq
Joshua Simmons 16 years ago committed by Aleksey Yeschenko
parent cc8ab5849b
commit 9d38da847d

@ -345,8 +345,14 @@ LUALIB_API int luaopen_zmq(lua_State *L)
set_zmq_const(REP);
set_zmq_const(XREQ);
set_zmq_const(XREP);
#if defined(ZMQ_PULL) && defined(ZMQ_PUSH)
set_zmq_const(PULL);
set_zmq_const(PUSH);
#else
set_zmq_const(UPSTREAM);
set_zmq_const(DOWNSTREAM);
#endif
set_zmq_const(HWM);
set_zmq_const(SWAP);

Loading…
Cancel
Save