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 775 - SDL won't compile on Mac OS X
Summary: SDL won't compile on Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: PowerPC Mac OS X 10.5 (Intel)
: P2 blocker
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 08:03 UTC by Noah Medling
Modified: 2009-09-12 12:17 UTC (History)
0 users

See Also:


Attachments
A patch to correct the types in atomic/macosx/SDL_atomic.c (10.68 KB, patch)
2009-08-03 08:03 UTC, Noah Medling
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Noah Medling 2009-08-03 08:03:21 UTC
Created attachment 342 [details]
A patch to correct the types in atomic/macosx/SDL_atomic.c

SDL (SVN 1.3, rev 4645) won't compile on Mac OS X due to conflicting types between SDL_atomic.h and atomic/macosx/SDL_atomic.c. Compilation fails with a couple hundred lines of errors like this:

./src/atomic/macosx/SDL_atomic.c:169: error: conflicting types for ‘SDL_AtomicExchange8’
./include/SDL_atomic.h:57: error: previous declaration of ‘SDL_AtomicExchange8’ was here

I have attached a patch that corrects the issue.
Comment 1 Ryan C. Gordon 2009-09-12 12:17:13 UTC
This is fixed in Subversion now.

--ryan.