File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -372,13 +372,15 @@ namespace zmq
372
372
return a == b;
373
373
}
374
374
375
+ #if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 0, 8)
375
376
inline const char * gets (const char *property_)
376
377
{
377
378
const char * value = zmq_msg_gets (&msg, property_);
378
379
if (value == NULL )
379
380
throw error_t ();
380
381
return value;
381
382
}
383
+ #endif
382
384
383
385
private:
384
386
// The underlying message
@@ -622,7 +624,11 @@ namespace zmq
622
624
623
625
inline size_t send (const void *buf_, size_t len_, int flags_ = 0 )
624
626
{
627
+ #if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 0, 8)
625
628
int nbytes = zmq_send_const (ptr, buf_, len_, flags_);
629
+ #else
630
+ int nbytes = zmq_send (ptr, buf_, len_, flags_);
631
+ #endif
626
632
if (nbytes >= 0 )
627
633
return (size_t ) nbytes;
628
634
if (zmq_errno () == EAGAIN)
You can’t perform that action at this time.
0 commit comments