summaryrefslogtreecommitdiff
path: root/src/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/clock.h')
-rw-r--r--src/clock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clock.h b/src/clock.h
index f1338938f..c98b9a652 100644
--- a/src/clock.h
+++ b/src/clock.h
@@ -24,6 +24,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Returns the value of a monotonic clock in milliseconds.
*/
@@ -38,4 +42,8 @@ gcc_pure
uint64_t
monotonic_clock_us(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif