From dbc37715597584e302c55ed61b95562db95df9ac Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 16 Dec 2020 21:22:43 -0500 Subject: [PATCH] src/common/uuid.h: wrap code in C++ guards Signed-off-by: Philippe Proulx Change-Id: Ia87b11fe0a7015085325259446f15393dc1f1e19 Reviewed-on: https://review.lttng.org/c/babeltrace/+/4600 Reviewed-by: Simon Marchi --- src/common/uuid.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/uuid.h b/src/common/uuid.h index 88787c5a..73ae1d8a 100644 --- a/src/common/uuid.h +++ b/src/common/uuid.h @@ -10,6 +10,10 @@ #include #include "common/macros.h" +#ifdef __cplusplus +extern "C" { +#endif + #define BT_UUID_STR_LEN 36 /* Excludes final \0 */ #define BT_UUID_LEN 16 #define BT_UUID_VER 4 @@ -38,4 +42,8 @@ BT_HIDDEN int bt_uuid_from_str(const char *str_in, bt_uuid_t uuid_out); BT_HIDDEN int bt_uuid_compare(const bt_uuid_t uuid_a, const bt_uuid_t uuid_b); BT_HIDDEN void bt_uuid_copy(bt_uuid_t uuid_dest, const bt_uuid_t uuid_src); +#ifdef __cplusplus +} +#endif + #endif /* _BABELTRACE_COMMON_UUID_H */ -- 2.34.1