# HG changeset patch # User Sam Lantinga # Date 1138952622 0 # Node ID 9439c2f1da89128961effab3dfb5343ba231fc3d # Parent 1dfc85090d07c6300bdeb7b1cdf4790dbca130fe 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) diff -r 1dfc85090d07 -r 9439c2f1da89 src/timer/linux/SDL_systimer.c --- a/src/timer/linux/SDL_systimer.c Fri Feb 03 07:39:02 2006 +0000 +++ b/src/timer/linux/SDL_systimer.c Fri Feb 03 07:43:42 2006 +0000 @@ -34,7 +34,7 @@ for __USE_POSIX199309 Tommi Kyntola (tommi.kyntola@ray.fi) 27/09/2005 */ -#if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0) +#if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0) #include /* * clock_gettime() is missing in my system's glibc, and apparently isn't