X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Futils.h;fp=tests%2Futils%2Futils.h;h=fc06b4ace4d7a058d481d1a8ecec519b07ae5bce;hp=afacf8d2f8cda641976aca064a6b52cf6c456fcd;hb=729c1fec5976af17fded2f026725a08ef1924290;hpb=488dbb6062973d4990a33284e4717d89a893339d diff --git a/tests/utils/utils.h b/tests/utils/utils.h index afacf8d2f..fc06b4ace 100644 --- a/tests/utils/utils.h +++ b/tests/utils/utils.h @@ -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 */