Fix: add extern "C" to two header files
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Sep 2021 02:30:02 +0000 (22:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Sep 2021 15:17:16 +0000 (11:17 -0400)
These are needed to build some lttng-tools binary as C++ programs.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Iba97d9cc52f86fd01cc24111c53a85340595e4c4

include/lttng/ust-clock.h
include/lttng/ust-ctl.h

index d608a933b8b26158351f7fb427903a4f324c9104..a5b7176d4828dd50e43f07c025dc0b24953dc543 100644 (file)
 #include <stdint.h>
 #include <stddef.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Set each callback for the trace clock override, and then enable the
  * override. Those functions return negative error values on error, 0 on
@@ -63,4 +67,8 @@ int lttng_ust_trace_clock_get_description_cb(lttng_ust_clock_description_functio
  */
 int lttng_ust_enable_trace_clock_override(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LTTNG_UST_CLOCK_H */
index 6e99bff5ff9e5c3dcbe255b62098eb33815c4e06..360bb09ab5d02dac0901963a11f208c1db4200df 100644 (file)
 #include <lttng/ust-utils.h>
 #include <lttng/ust-sigbus.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef LTTNG_UST_UUID_LEN
 #define LTTNG_UST_UUID_LEN     16
 #endif
@@ -656,4 +660,8 @@ int lttng_ust_ctl_counter_clear(struct lttng_ust_ctl_daemon_counter *counter,
 
 void lttng_ust_ctl_sigbus_handle(void *addr);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LTTNG_UST_CTL_H */
This page took 0.026391 seconds and 4 git commands to generate.