Fix: C++ support to API header files
[babeltrace.git] / include / babeltrace / format.h
index 4ace0b04563067a56187063299a3bc3679995a93..ef340da115b9432abdad0f35d6e5e94a3d23e52b 100644 (file)
 #include <stdint.h>
 #include <stdio.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef int bt_intern_str;
 
 /* forward declaration */
@@ -75,5 +79,8 @@ extern void bt_fprintf_format_list(FILE *fp);
 extern int bt_register_format(struct format *format);
 
 /* TBD: format unregistration */
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* _BABELTRACE_FORMAT_H */
This page took 0.023074 seconds and 4 git commands to generate.