X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.h;fp=src%2Fcommon%2Futils.h;h=6e478b39eb3609f90aa3ad1ab3b5a4200754411c;hp=a3250639becd448d38a10e61ef47287709256204;hb=48a4000561343808724f7cb5fa8c131877489ccd;hpb=81663f073dbfb4b61c06a0ceb8ca33c4fc41b1c5 diff --git a/src/common/utils.h b/src/common/utils.h index a3250639b..6e478b39e 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -17,6 +17,10 @@ #include +#if defined(__cplusplus) +extern "C" { +#endif + #define KIBI_LOG2 10 #define MEBI_LOG2 20 #define GIBI_LOG2 30 @@ -68,4 +72,8 @@ enum lttng_error_code utils_group_id_from_name( int utils_parse_unsigned_long_long(const char *str, unsigned long long *value); +#if defined(__cplusplus) +} +#endif + #endif /* _COMMON_UTILS_H */