bin: compile lttng as C++
[lttng-tools.git] / src / common / utils.h
index a3250639becd448d38a10e61ef47287709256204..6e478b39eb3609f90aa3ad1ab3b5a4200754411c 100644 (file)
 
 #include <common/compat/directory-handle.h>
 
+#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 */
This page took 0.023275 seconds and 4 git commands to generate.