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 861

Summary: 64-bit expects mForkRefNum to be int
Product: SDL Reporter: C.W. Betts <computers57>
Component: cdromAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: computers57
Version: 1.2.14Keywords: target-1.2.14
Hardware: x86_64   
OS: Mac OS X 10.6   
Attachments: patch to make CD work on OS X
Fix CD player on 64-bit Mac

Description C.W. Betts 2009-10-19 19:16:41 UTC
Created attachment 429 [details]
patch to make CD work on OS X

In 64-bit libraries, the fork reference is a different size than in 32-bit. 
Apple has tried to help this transition by making a typedef called FSIORefNum,
but it is only available in Mac OS X 10.5 headers or later.  I first noticed
this bug in Mac OS X's CD player code, and the patch is set to fix it
accordingly.  This might also be an issue in SDL_QuartzVideo.m
Comment 1 C.W. Betts 2009-10-19 19:56:28 UTC
Created attachment 430 [details]
Fix CD player on 64-bit Mac

heh, whoops!  This patch actually does fix the issue and compiles.
Comment 2 Sam Lantinga 2009-10-19 20:47:41 UTC
Thanks!  Your fix is in for release.