projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: compile some tools/tests as C++
[lttng-tools.git]
/
tests
/
utils
/
utils.h
diff --git
a/tests/utils/utils.h
b/tests/utils/utils.h
index afacf8d2f8cda641976aca064a6b52cf6c456fcd..fc06b4ace4d7a058d481d1a8ecec519b07ae5bce 100644
(file)
--- a/
tests/utils/utils.h
+++ b/
tests/utils/utils.h
@@
-8,6
+8,10
@@
#ifndef TEST_UTILS_H
#define TEST_UTILS_H
#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))
/*
#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);
int create_file(const char *path);
int wait_on_file(const char *path);
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* TEST_UTILS_H */
#endif /* TEST_UTILS_H */
This page took
0.023158 seconds
and
4
git commands to generate.