Better fix for bug #861

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2009-10-20 03:47:29 +00:00
parent 3d6bd8a62b
commit e6b7fe6556
2 changed files with 5 additions and 9 deletions

View File

@@ -37,6 +37,10 @@
#include <AudioUnit/AUNTComponent.h>
#endif
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
typedef SInt16 FSIORefNum;
#endif
#include "SDL_error.h"
const char* AudioFilePlayerErrorStr (OSStatus error);
@@ -80,12 +84,8 @@ typedef struct S_AudioFilePlayer
/*private:*/
AudioUnit mPlayUnit;
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
FSIORefNum mForkRefNum;
#else
int mForkRefNum;
#endif
AURenderCallbackStruct mInputCallback;
AudioStreamBasicDescription mFileDescription;

View File

@@ -34,10 +34,6 @@
#include "SDL_thread.h"
#include "SDL_mutex.h"
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
typedef SInt16 FSIORefNum;
#endif
#ifdef __cplusplus
extern "C" {
#endif