diff --git a/toxav/toxav.h b/toxav/toxav.h index f2501d7ae..2571bfff8 100644 --- a/toxav/toxav.h +++ b/toxav/toxav.h @@ -25,6 +25,10 @@ #include #include #include + +#ifdef __cplusplus +extern "C" { +#endif /** \page av Public audio/video API for Tox clients. * * Unlike the Core API, this API is fully thread-safe. The library will ensure @@ -528,4 +532,8 @@ typedef void toxav_receive_audio_frame_cb(ToxAV *av, uint32_t friend_number, */ void toxav_callback_receive_audio_frame(ToxAV *av, toxav_receive_audio_frame_cb *function, void *user_data); +#ifdef __cplusplus +} +#endif + #endif /* TOXAV_H */