X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftime.h;h=dc3f7634223ed8c79810c7f3c98cd117864a8f27;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=87adf17d75d40af2945ef392bb45129bb777d11b;hpb=ca806b0b247f89c62ac628a7779ae84049a8c2d7;p=lttng-tools.git diff --git a/src/common/time.h b/src/common/time.h index 87adf17d7..dc3f76342 100644 --- a/src/common/time.h +++ b/src/common/time.h @@ -13,6 +13,10 @@ #include #include +#if defined(__cplusplus) +extern "C" { +#endif + #define MSEC_PER_SEC 1000ULL #define NSEC_PER_SEC 1000000000ULL #define NSEC_PER_MSEC 1000000ULL @@ -62,4 +66,8 @@ int time_to_iso8601_str(time_t time, char *str, size_t len); int time_to_datetime_str(time_t time, char *str, size_t len); +#if defined(__cplusplus) +} +#endif + #endif /* LTTNG_TIME_H */