# HG changeset patch # User Sam Lantinga # Date 1256010306 0 # Node ID 4c088d2b29ebf90ba6a8f26bb024cf23ae78e475 # Parent 2d00ed718720565664a10f1de5d5c4fe86eb7915 Fixed bug #861 C.W. Betts 2009-10-19 19:16:41 PDT 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 diff -r 2d00ed718720 -r 4c088d2b29eb src/cdrom/macosx/AudioFilePlayer.h --- a/src/cdrom/macosx/AudioFilePlayer.h Mon Oct 19 10:09:58 2009 +0000 +++ b/src/cdrom/macosx/AudioFilePlayer.h Tue Oct 20 03:45:06 2009 +0000 @@ -80,8 +80,12 @@ /*private:*/ AudioUnit mPlayUnit; - SInt16 mForkRefNum; - +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 + FSIORefNum mForkRefNum; +#else + int mForkRefNum; +#endif + AURenderCallbackStruct mInputCallback; AudioStreamBasicDescription mFileDescription;