tests: compile some tools/tests as C++
[lttng-tools.git] / tests / utils / utils.h
index afacf8d2f8cda641976aca064a6b52cf6c456fcd..fc06b4ace4d7a058d481d1a8ecec519b07ae5bce 100644 (file)
@@ -8,6 +8,10 @@
 #ifndef TEST_UTILS_H
 #define TEST_UTILS_H
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
 
 /*
@@ -37,4 +41,8 @@ int usleep_safe(useconds_t usec);
 int create_file(const char *path);
 int wait_on_file(const char *path);
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* TEST_UTILS_H */
This page took 0.023183 seconds and 4 git commands to generate.