diff options
author | Kevin Vigor <kvigor@gmail.com> | 2019-05-06 15:41:31 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-05-06 15:45:01 -0600 |
commit | 40c6f8454b86a5cd3bda63b41b9524ec162e9842 (patch) | |
tree | f0bcfa9066b869069ab70b4b1fd6ce5176354fab /src | |
parent | a17aec8458544f5ad3ce234b4750dce35a621081 (diff) |
liburing: add extern "C" to liburing.h
Make header includable from C++ projects.
Signed-off-by: Kevin Vigor <kvigor@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r-- | src/liburing.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/liburing.h b/src/liburing.h index a8d77e1..32e7211 100644 --- a/src/liburing.h +++ b/src/liburing.h @@ -1,6 +1,10 @@ #ifndef LIB_URING_H #define LIB_URING_H +#ifdef __cplusplus +extern "C" { +#endif + #include <sys/uio.h> #include <signal.h> #include <inttypes.h> @@ -171,4 +175,8 @@ static inline void io_uring_prep_nop(struct io_uring_sqe *sqe) sqe->opcode = IORING_OP_NOP; } +#ifdef __cplusplus +} +#endif + #endif |