diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-19 18:28:35 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-19 18:28:35 +0100 |
commit | eea6c205ae45acbed04de746dc2db1b1fc441562 (patch) | |
tree | d6ca40c87ce0a19d45e3e0fc90c9811e4d8a7f7d /opentrack | |
parent | 0449856f30122020ebf956b7ce798db98acc0b9a (diff) |
timer: cleanup warning
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/timer.hpp | 4 |
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; |