Skip to content

Commit

Permalink
From: Hayashi Naoyuki
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
slouken committed Feb 3, 2006
1 parent eeca914 commit 873e2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timer/linux/SDL_systimer.c
Expand Up @@ -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 <time.h>
/*
* clock_gettime() is missing in my system's glibc, and apparently isn't
Expand Down

0 comments on commit 873e2d1

Please sign in to comment.