diff options
-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; |