We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 85 - SDL_systimer.c compile fail
Summary: SDL_systimer.c compile fail
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: timer (show other bugs)
Version: HG 1.2
Hardware: Other Other
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 07:27 UTC by Hayashi Naoyuki
Modified: 2006-02-03 02:44 UTC (History)
0 users

See Also:


Attachments
SDL12/src/timer/linux/SDL_systimer.c patch (769 bytes, patch)
2006-01-26 07:33 UTC, Hayashi Naoyuki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hayashi Naoyuki 2006-01-26 07:27:28 UTC
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)
Comment 1 Hayashi Naoyuki 2006-01-26 07:33:49 UTC
Created attachment 40 [details]
SDL12/src/timer/linux/SDL_systimer.c patch
Comment 2 Ryan C. Gordon 2006-01-27 11:23:25 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 3 Sam Lantinga 2006-02-03 02:44:01 UTC
This is in CVS, thanks!