From: Hayashi Naoyuki
authorSam Lantinga <slouken@libsdl.org>
Fri, 03 Feb 2006 07:43:42 +0000
changeset 13269439c2f1da89
parent 1325 1dfc85090d07
child 1327 d12a63a8d95a
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)
src/timer/linux/SDL_systimer.c
     1.1 --- a/src/timer/linux/SDL_systimer.c	Fri Feb 03 07:39:02 2006 +0000
     1.2 +++ b/src/timer/linux/SDL_systimer.c	Fri Feb 03 07:43:42 2006 +0000
     1.3 @@ -34,7 +34,7 @@
     1.4     for __USE_POSIX199309
     1.5     Tommi Kyntola (tommi.kyntola@ray.fi) 27/09/2005
     1.6  */
     1.7 -#if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0)
     1.8 +#if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0)
     1.9  #include <time.h>
    1.10  /*
    1.11   * clock_gettime() is missing in my system's glibc, and apparently isn't