From 40c6f8454b86a5cd3bda63b41b9524ec162e9842 Mon Sep 17 00:00:00 2001 From: Kevin Vigor Date: Mon, 6 May 2019 15:41:31 -0600 Subject: liburing: add extern "C" to liburing.h Make header includable from C++ projects. Signed-off-by: Kevin Vigor Signed-off-by: Jens Axboe --- src/liburing.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit