changeset 4369:f14cf9d71233 SDL-1.2 release-1.2.14

Better fix for bug #861
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Oct 2009 03:47:29 +0000
parents 4c088d2b29eb
children 8d67936e32ec
files src/cdrom/macosx/AudioFilePlayer.h src/cdrom/macosx/CDPlayer.h
diffstat 2 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/cdrom/macosx/AudioFilePlayer.h	Tue Oct 20 03:45:06 2009 +0000
+++ b/src/cdrom/macosx/AudioFilePlayer.h	Tue Oct 20 03:47:29 2009 +0000
@@ -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 @@
 
 /*private:*/
     AudioUnit                       mPlayUnit;
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
     FSIORefNum                      mForkRefNum;
-#else
-    int                             mForkRefNum;
-#endif
-
+    
     AURenderCallbackStruct          mInputCallback;
 
     AudioStreamBasicDescription     mFileDescription;
--- a/src/cdrom/macosx/CDPlayer.h	Tue Oct 20 03:45:06 2009 +0000
+++ b/src/cdrom/macosx/CDPlayer.h	Tue Oct 20 03:47:29 2009 +0000
@@ -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