summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-08-30 09:18:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-08-30 09:18:23 +0200
commitac0e2cce53c078235331f00dc79b65d333c90e76 (patch)
tree113ddefe68c94eec0319ea837aa8233e85e7403e
parent8211006f5a44dffe1bb32ebe4aad8e3344e81aa1 (diff)
use our own clock_gettime on win32
-rw-r--r--facetracknoir/timer.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/facetracknoir/timer.hpp b/facetracknoir/timer.hpp
index e3fa38de..24d62e37 100644
--- a/facetracknoir/timer.hpp
+++ b/facetracknoir/timer.hpp
@@ -2,8 +2,7 @@
#include <time.h>
#if defined (_WIN32)
# include <windows.h>
-# define CLOCK_MONOTONIC 0
-static inline void clock_gettime(int, struct timespec* ts)
+static inline void opentrack_clock_gettime(int, struct timespec* ts)
{
static LARGE_INTEGER freq;
@@ -20,7 +19,7 @@ static inline void clock_gettime(int, struct timespec* ts)
ts->tv_sec = d.QuadPart / 1000000000L;
ts->tv_nsec = d.QuadPart % 1000000000L;
}
-
+# define clock_gettime opentrack_clock_gettime
#else
# if defined(__MACH__)
# define CLOCK_MONOTONIC 0