src/common/{common,safe}.h: wrap code in C++ guards
[babeltrace.git] / src / common / common.h
index a04f2be64cd4747939c9254b7c26c340b1dfdb4d..c8b9bb8b163b10629b6c781e154affce3f32a301 100644 (file)
 #include "common/macros.h"
 #include "common/safe.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define BT_COMMON_COLOR_RESET                  "\033[0m"
 #define BT_COMMON_COLOR_BOLD                   "\033[1m"
 #define BT_COMMON_COLOR_FG_DEFAULT             "\033[39m"
@@ -849,4 +853,8 @@ void bt_common_g_string_append_c(GString *str, char c)
        str->str[len + 1] = '\0';
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* BABELTRACE_COMMON_INTERNAL_H */
This page took 0.023431 seconds and 4 git commands to generate.