src/common/{common,safe}.h: wrap code in C++ guards
[babeltrace.git] / src / common / safe.h
index 6999730c9730a87f297a0ecb51bc538a0add15df..cb962c48065805fb9db5dbd5ce7daa9c6892bc30 100644 (file)
@@ -7,6 +7,10 @@
 #include <stdbool.h>
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 static inline
 bool bt_safe_to_mul_int64(int64_t a, int64_t b)
 {
@@ -38,3 +42,7 @@ bool bt_safe_to_add_uint64(uint64_t a, uint64_t b)
 {
        return a <= UINT64_MAX - b;
 }
+
+#ifdef __cplusplus
+}
+#endif
This page took 0.022635 seconds and 4 git commands to generate.