diff --git a/src/cdrom/macosx/AudioFilePlayer.h b/src/cdrom/macosx/AudioFilePlayer.h index 6bd256e89..b4f4d3493 100644 --- a/src/cdrom/macosx/AudioFilePlayer.h +++ b/src/cdrom/macosx/AudioFilePlayer.h @@ -37,7 +37,8 @@ #include #endif -#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 +/* This typedef is included in the 10.5+ SDK headers. */ +#ifndef MAC_OS_X_VERSION_10_5 typedef SInt16 FSIORefNum; #endif diff --git a/src/video/quartz/SDL_QuartzWindow.h b/src/video/quartz/SDL_QuartzWindow.h index ce850251d..cd890a48b 100644 --- a/src/video/quartz/SDL_QuartzWindow.h +++ b/src/video/quartz/SDL_QuartzWindow.h @@ -21,7 +21,8 @@ */ #include "SDL_config.h" -#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 +/* this is defined in the 10.5+ SDK headers +#ifndef MAC_OS_X_VERSION_10_5 typedef unsigned int NSUInteger; #endif