From fa516c5ee6a1d13ee65484e309a8b3d8a492f1b5 Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Tue, 7 Jan 2014 00:55:32 -0500 Subject: [PATCH] - For some reason __MAC_10_6 is defined in the 10.5 SDK so use MAC_OS_X_VERSION_MAX to check SDK version instead. --- src/sdl/i_system.cpp | 2 +- src/sdl/iwadpicker_cocoa.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 6bd95d6e7..465735103 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -719,7 +719,7 @@ bool I_WriteIniFailed () static const char *pattern; -#if defined(__APPLE__) && !defined(__MAC_10_8) +#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED < 1080 static int matchfile (struct dirent *ent) #else static int matchfile (const struct dirent *ent) diff --git a/src/sdl/iwadpicker_cocoa.mm b/src/sdl/iwadpicker_cocoa.mm index 06f84098a..3b414d5e8 100644 --- a/src/sdl/iwadpicker_cocoa.mm +++ b/src/sdl/iwadpicker_cocoa.mm @@ -49,7 +49,7 @@ static const char* const tableHeaders[NUM_COLUMNS] = { "IWAD", "Game" }; // Class to convert the IWAD data into a form that Cocoa can use. @interface IWADTableData : NSObject -#ifdef __MAC_10_6 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 #endif {