Commit cf3e9b51 authored by Sam Lantinga's avatar Sam Lantinga

Better fix for bug #861

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404129
parent 48c68a0a
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
#include <AudioUnit/AUNTComponent.h> #include <AudioUnit/AUNTComponent.h>
#endif #endif
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
typedef SInt16 FSIORefNum;
#endif
#include "SDL_error.h" #include "SDL_error.h"
const char* AudioFilePlayerErrorStr (OSStatus error); const char* AudioFilePlayerErrorStr (OSStatus error);
...@@ -80,12 +84,8 @@ typedef struct S_AudioFilePlayer ...@@ -80,12 +84,8 @@ typedef struct S_AudioFilePlayer
/*private:*/ /*private:*/
AudioUnit mPlayUnit; AudioUnit mPlayUnit;
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
FSIORefNum mForkRefNum; FSIORefNum mForkRefNum;
#else
int mForkRefNum;
#endif
AURenderCallbackStruct mInputCallback; AURenderCallbackStruct mInputCallback;
AudioStreamBasicDescription mFileDescription; AudioStreamBasicDescription mFileDescription;
......
...@@ -34,10 +34,6 @@ ...@@ -34,10 +34,6 @@
#include "SDL_thread.h" #include "SDL_thread.h"
#include "SDL_mutex.h" #include "SDL_mutex.h"
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
typedef SInt16 FSIORefNum;
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment