Better test for actual Mac OS X SDK in use. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 18 Sep 2011 02:43:59 -0400
branchSDL-1.2
changeset 5955 0ade820b8f5f
parent 5954 56547783eae2
child 5960 eb025734b5a1
Better test for actual Mac OS X SDK in use.
src/cdrom/macosx/AudioFilePlayer.h
src/video/quartz/SDL_QuartzWindow.h
--- a/src/cdrom/macosx/AudioFilePlayer.h	Sun Sep 18 02:38:12 2011 -0400
+++ b/src/cdrom/macosx/AudioFilePlayer.h	Sun Sep 18 02:43:59 2011 -0400
@@ -37,8 +37,7 @@
 #include <AudioUnit/AUNTComponent.h>
 #endif
 
-/* This typedef is included in the 10.5+ SDK headers. */
-#ifndef MAC_OS_X_VERSION_10_5
+#if (MAC_OS_X_VERSION_MAX_ALLOWED <= 1050)
 typedef SInt16 FSIORefNum;
 #endif
 
--- a/src/video/quartz/SDL_QuartzWindow.h	Sun Sep 18 02:38:12 2011 -0400
+++ b/src/video/quartz/SDL_QuartzWindow.h	Sun Sep 18 02:43:59 2011 -0400
@@ -21,8 +21,7 @@
 */
 #include "SDL_config.h"
 
-/* this is defined in the 10.5+ SDK headers
-#ifndef MAC_OS_X_VERSION_10_5
+#if (MAC_OS_X_VERSION_MAX_ALLOWED < 1050)
 typedef unsigned int NSUInteger;
 #endif