projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/common/{common,safe}.h: wrap code in C++ guards
[babeltrace.git]
/
src
/
common
/
common.h
diff --git
a/src/common/common.h
b/src/common/common.h
index a04f2be64cd4747939c9254b7c26c340b1dfdb4d..c8b9bb8b163b10629b6c781e154affce3f32a301 100644
(file)
--- a/
src/common/common.h
+++ b/
src/common/common.h
@@
-28,6
+28,10
@@
#include "common/macros.h"
#include "common/safe.h"
#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"
#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';
}
str->str[len + 1] = '\0';
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* BABELTRACE_COMMON_INTERNAL_H */
#endif /* BABELTRACE_COMMON_INTERNAL_H */
This page took
0.022519 seconds
and
4
git commands to generate.