Skip to content

Commit

Permalink
add version control as random is new in 1.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
levalup committed Jun 16, 2024
1 parent b18a44d commit aa1d3f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/uvcxx/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "req.h"

namespace uv {
#if UVCXX_SATISFY_VERSION(1, 33, 0)

class random_t : public inherit_req_t<uv_random_t, req_t> {
public:
using self = random_t;
Expand Down Expand Up @@ -70,6 +72,8 @@ namespace uv {
void *buf, size_t buflen, unsigned int flags) {
return random(default_loop(), req, buf, buflen, flags);
}

#endif
}

#endif //LIBUVCXX_RANDOM_H

0 comments on commit aa1d3f7

Please sign in to comment.