This makes it possible to use it from C++ programs.
Change-Id: Ic111f493b0b048b8e491b824af293f0742bda35a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10067
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
* Copyright (C) 2017 Jérémie Galarneau
*/
* Copyright (C) 2017 Jérémie Galarneau
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* '## __VA_ARGS__' is a gcc'ism. C99 doesn't allow the token pasting
and requires the caller to add the final comma if they've ommitted
the optional arguments */
/* '## __VA_ARGS__' is a gcc'ism. C99 doesn't allow the token pasting
and requires the caller to add the final comma if they've ommitted
the optional arguments */
void todo_end(void);
int exit_status(void);
void todo_end(void);
int exit_status(void);
+
+#ifdef __cplusplus
+}
+#endif