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 #include #include @@ -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