From f2ee9707cb37a82730c88e019fbe0c71cf66a8aa Mon Sep 17 00:00:00 2001 From: nirenjan Date: Sat, 5 Dec 2015 23:22:11 -0800 Subject: [PATCH] Wrap public header in extern C --- libx52/src/libx52.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */