From bf17281c03c953c7312c872b68c0effef5e371ec Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 18 Sep 2011 02:43:59 -0400 Subject: [PATCH] Better test for actual Mac OS X SDK in use. --HG-- branch : SDL-1.2 --- src/cdrom/macosx/AudioFilePlayer.h | 3 +-- src/video/quartz/SDL_QuartzWindow.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cdrom/macosx/AudioFilePlayer.h b/src/cdrom/macosx/AudioFilePlayer.h index b4f4d3493..f68b5a494 100644 --- a/src/cdrom/macosx/AudioFilePlayer.h +++ b/src/cdrom/macosx/AudioFilePlayer.h @@ -37,8 +37,7 @@ #include #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 diff --git a/src/video/quartz/SDL_QuartzWindow.h b/src/video/quartz/SDL_QuartzWindow.h index cd890a48b..5acf6d1bb 100644 --- a/src/video/quartz/SDL_QuartzWindow.h +++ b/src/video/quartz/SDL_QuartzWindow.h @@ -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