mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Win32 build fixed
This commit is contained in:
parent
34d65e22c5
commit
d762e1a9c9
@ -33,14 +33,6 @@ namespace zmq
|
|||||||
typedef zmq_free_fn free_fn;
|
typedef zmq_free_fn free_fn;
|
||||||
typedef zmq_pollitem_t pollitem_t;
|
typedef zmq_pollitem_t pollitem_t;
|
||||||
|
|
||||||
inline int poll (zmq_pollitem_t *items_, int nitems_, long timeout_ = -1)
|
|
||||||
{
|
|
||||||
int rc = zmq_poll (items_, nitems_, timeout_);
|
|
||||||
if (rc < 0)
|
|
||||||
throw error_t ();
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
|
|
||||||
class error_t : public std::exception
|
class error_t : public std::exception
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -57,6 +49,14 @@ namespace zmq
|
|||||||
int errnum;
|
int errnum;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline int poll (zmq_pollitem_t *items_, int nitems_, long timeout_ = -1)
|
||||||
|
{
|
||||||
|
int rc = zmq_poll (items_, nitems_, timeout_);
|
||||||
|
if (rc < 0)
|
||||||
|
throw error_t ();
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
class message_t : private zmq_msg_t
|
class message_t : private zmq_msg_t
|
||||||
{
|
{
|
||||||
friend class socket_t;
|
friend class socket_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user