Build fix: Missing message in LTTNG_DEPRECATED invocation
[lttng-tools.git] / src / common / time.h
index b07adc85bb1b4521188080a2b7221160718c944f..dc3f7634223ed8c79810c7f3c98cd117864a8f27 100644 (file)
 #include <common/macros.h>
 #include <common/compat/time.h>
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #define MSEC_PER_SEC    1000ULL
 #define NSEC_PER_SEC    1000000000ULL
 #define NSEC_PER_MSEC   1000000ULL
@@ -29,7 +33,6 @@
 #define ISO8601_STR_LEN sizeof("YYYYmmddTHHMMSS+HHMM")
 #define DATETIME_STR_LEN sizeof("YYYYmmdd-HHMMSS")
 
-LTTNG_HIDDEN
 bool locale_supports_utf8(void);
 
 #define NSEC_UNIT       "ns"
@@ -45,13 +48,11 @@ bool locale_supports_utf8(void);
  * Returns 0 on success, else -1 on error. errno is set to EOVERFLOW if
  * input would overflow the output in milliseconds.
  */
-LTTNG_HIDDEN
 int timespec_to_ms(struct timespec ts, unsigned long *ms);
 
 /*
  * timespec_abs_diff: Absolute difference between timespec.
  */
-LTTNG_HIDDEN
 struct timespec timespec_abs_diff(struct timespec ts_a, struct timespec ts_b);
 
 /*
@@ -61,10 +62,12 @@ struct timespec timespec_abs_diff(struct timespec ts_a, struct timespec ts_b);
  *
  * Returns 0 on success, else -1 on error.
  */
-LTTNG_HIDDEN
 int time_to_iso8601_str(time_t time, char *str, size_t len);
 
-LTTNG_HIDDEN
 int time_to_datetime_str(time_t time, char *str, size_t len);
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* LTTNG_TIME_H */
This page took 0.023527 seconds and 4 git commands to generate.