diff --git a/libx52/src/libx52.h b/libx52/src/libx52.h index a5378be..a5bf037 100644 --- a/libx52/src/libx52.h +++ b/libx52/src/libx52.h @@ -15,6 +15,10 @@ #include #include +#ifndef __cplusplus +extern "C" { +#endif + /** * @brief Opaque structure used by libx52 */ @@ -309,4 +313,8 @@ int libx52_update(libx52_device *x52); */ int libx52_vendor_command(libx52_device *x52, uint16_t index, uint16_t value); +#ifndef __cplusplus +} +#endif + #endif /* !defined LIBX52_H */