Mercurial > sdl-ios-xcode
changeset 4368:4c088d2b29eb SDL-1.2
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
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 20 Oct 2009 03:45:06 +0000 |
parents | 2d00ed718720 |
children | f14cf9d71233 |
files | src/cdrom/macosx/AudioFilePlayer.h |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;