1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-29 21:48:52 -05:00

I am POSIXed.

This commit is contained in:
Camilla Berglund 2012-03-20 20:00:04 +01:00
parent 3a8b4b3a84
commit df1af5ca75

View File

@ -39,7 +39,7 @@
static uint64_t getRawTime(void) static uint64_t getRawTime(void)
{ {
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) #if defined(CLOCK_MONOTONIC)
if (_glfwLibrary.X11.timer.monotonic) if (_glfwLibrary.X11.timer.monotonic)
{ {
struct timespec ts; struct timespec ts;
@ -64,7 +64,7 @@ static uint64_t getRawTime(void)
void _glfwInitTimer(void) void _glfwInitTimer(void)
{ {
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) #if defined(CLOCK_MONOTONIC)
struct timespec ts; struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)