X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.h;h=6e478b39eb3609f90aa3ad1ab3b5a4200754411c;hb=48a4000561343808724f7cb5fa8c131877489ccd;hp=52dcd01facc1144d3216132248c4925bfa63af58;hpb=440bede9ee59598b9ea8a3a3ff3191b8c84bd4f7;p=lttng-tools.git diff --git a/src/common/utils.h b/src/common/utils.h index 52dcd01fa..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 @@ -65,8 +69,11 @@ enum lttng_error_code utils_group_id_from_name( * - `str` is zero length * - `str` contains invalid */ -LTTNG_HIDDEN int utils_parse_unsigned_long_long(const char *str, unsigned long long *value); +#if defined(__cplusplus) +} +#endif + #endif /* _COMMON_UTILS_H */