X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fcommon%2Fcommon.h;h=c8b9bb8b163b10629b6c781e154affce3f32a301;hp=a04f2be64cd4747939c9254b7c26c340b1dfdb4d;hb=97ebbaa08e88b19d5f8c40f3339c607ae01d66d2;hpb=353c2524c2d4606a79ac5f4c0354a683a14e63e5 diff --git a/src/common/common.h b/src/common/common.h index a04f2be6..c8b9bb8b 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -28,6 +28,10 @@ #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 */