summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-19 18:28:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-19 18:28:35 +0100
commiteea6c205ae45acbed04de746dc2db1b1fc441562 (patch)
treed6ca40c87ce0a19d45e3e0fc90c9811e4d8a7f7d /opentrack
parent0449856f30122020ebf956b7ce798db98acc0b9a (diff)
timer: cleanup warning
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/timer.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/opentrack/timer.hpp b/opentrack/timer.hpp
index 1b52b6c8..eb956213 100644
--- a/opentrack/timer.hpp
+++ b/opentrack/timer.hpp
@@ -2,7 +2,9 @@
#include <ctime>
#if defined (_WIN32)
# include <windows.h>
-# define CLOCK_MONOTONIC -1
+# ifndef CLOCK_MONOTONIC
+# define CLOCK_MONOTONIC -1
+# endif
static inline void opentrack_clock_gettime(int, struct timespec* ts)
{
static LARGE_INTEGER freq;