Mercurial > sdl-ios-xcode
comparison src/timer/linux/SDL_systimer.c @ 1326:9439c2f1da89
From: Hayashi Naoyuki
I tried to compile with gcc on Tru64, and got the following error.
SDL_systimer.c:45:45: error: operator '&&' has no right operand
It succeeds if changing
#if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0)
to
#if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 03 Feb 2006 07:43:42 +0000 |
parents | c9b51268668f |
children | 3692456e7b0f |
comparison
equal
deleted
inserted
replaced
1325:1dfc85090d07 | 1326:9439c2f1da89 |
---|---|
32 /* The clock_gettime provides monotonous time, so we should use it if | 32 /* The clock_gettime provides monotonous time, so we should use it if |
33 it's available. The clock_gettime function is behind ifdef | 33 it's available. The clock_gettime function is behind ifdef |
34 for __USE_POSIX199309 | 34 for __USE_POSIX199309 |
35 Tommi Kyntola (tommi.kyntola@ray.fi) 27/09/2005 | 35 Tommi Kyntola (tommi.kyntola@ray.fi) 27/09/2005 |
36 */ | 36 */ |
37 #if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0) | 37 #if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0) |
38 #include <time.h> | 38 #include <time.h> |
39 /* | 39 /* |
40 * clock_gettime() is missing in my system's glibc, and apparently isn't | 40 * clock_gettime() is missing in my system's glibc, and apparently isn't |
41 * available before Linux kernel 2.6...you can uncomment the following | 41 * available before Linux kernel 2.6...you can uncomment the following |
42 * define to use it, since it may be a better solution than | 42 * define to use it, since it may be a better solution than |