diff --git a/include/gattlib.h b/include/gattlib.h index 1aad1de..11987ae 100644 --- a/include/gattlib.h +++ b/include/gattlib.h @@ -24,6 +24,10 @@ #ifndef __GATTLIB_H__ #define __GATTLIB_H__ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -125,4 +129,8 @@ int gattlib_uuid_to_string(const uuid_t *uuid, char *str, size_t n); int gattlib_string_to_uuid(const char *str, size_t n, uuid_t *uuid); int gattlib_uuid_cmp(const uuid_t *uuid1, const uuid_t *uuid2); +#ifdef __cplusplus +} +#endif + #endif