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

Summary: SDL won't compile on Mac OS X
Product: SDL Reporter: Noah Medling <noah>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2    
Version: HG 2.0   
Hardware: PowerPC   
OS: Mac OS X 10.5 (Intel)   
Attachments: A patch to correct the types in atomic/macosx/SDL_atomic.c

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.