From eea6c205ae45acbed04de746dc2db1b1fc441562 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 19 Dec 2014 18:28:35 +0100 Subject: timer: cleanup warning --- opentrack/timer.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 #if defined (_WIN32) # include -# 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; -- cgit v1.2.3