src/common/uuid.h: wrap code in C++ guards
[babeltrace.git] / src / common / uuid.h
index 88787c5aee60ac21dee447e62661dee3d6023c20..73ae1d8af339aea7779cb78127aee04de7b4af13 100644 (file)
 #include <stdint.h>
 #include "common/macros.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define BT_UUID_STR_LEN 36 /* Excludes final \0 */
 #define BT_UUID_LEN 16
 #define BT_UUID_VER 4
@@ -38,4 +42,8 @@ BT_HIDDEN int bt_uuid_from_str(const char *str_in, bt_uuid_t uuid_out);
 BT_HIDDEN int bt_uuid_compare(const bt_uuid_t uuid_a, const bt_uuid_t uuid_b);
 BT_HIDDEN void bt_uuid_copy(bt_uuid_t uuid_dest, const bt_uuid_t uuid_src);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _BABELTRACE_COMMON_UUID_H */
This page took 0.024546 seconds and 4 git commands to generate.