From d82cae13125bac849c81c2dbc9c7a43c3ef64f65 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Tue, 6 May 2014 15:50:13 +0100 Subject: [PATCH] aio: add c++ header guards Signed-off-by: Brendan Le Foll --- api/aio.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/aio.h b/api/aio.h index 2bd10a8..2eca966 100644 --- a/api/aio.h +++ b/api/aio.h @@ -29,6 +29,10 @@ * */ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -72,3 +76,7 @@ unsigned int maa_aio_read_u16(maa_aio_context* dev); * @return maa_result_t - result type. */ maa_result_t maa_aio_close(maa_aio_context* dev); + +#ifdef __cplusplus +} +#endif