Condy v1.1.0
C++ Asynchronous System Call Layer for Linux
Loading...
Searching...
No Matches
condy_uring.hpp
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <liburing.h> // IWYU pragma: export
8
9// liburing <= 2.3 has no version macros, define them here
10
11#ifndef IO_URING_VERSION_MAJOR
12#define IO_URING_VERSION_MAJOR 2
13#endif
14
15#ifndef IO_URING_VERSION_MINOR
16#define IO_URING_VERSION_MINOR 3
17#endif
18
19#ifndef IO_URING_CHECK_VERSION
20#define IO_URING_CHECK_VERSION(major, minor) \
21 (major > IO_URING_VERSION_MAJOR || \
22 (major == IO_URING_VERSION_MAJOR && minor > IO_URING_VERSION_MINOR))
23#endif