aboutsummaryrefslogtreecommitdiffstats
path: root/src/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/clock.h')
-rw-r--r--src/clock.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/clock.h b/src/clock.h
index 4ece35ab1..c98b9a652 100644
--- a/src/clock.h
+++ b/src/clock.h
@@ -20,22 +20,30 @@
#ifndef MPD_CLOCK_H
#define MPD_CLOCK_H
-#include <glib.h>
+#include "gcc.h"
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Returns the value of a monotonic clock in milliseconds.
*/
-G_GNUC_PURE
+gcc_pure
unsigned
monotonic_clock_ms(void);
/**
* Returns the value of a monotonic clock in microseconds.
*/
-G_GNUC_PURE
+gcc_pure
uint64_t
monotonic_clock_us(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif