summaryrefslogtreecommitdiff
path: root/include/SDL_platform.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2010-12-01 12:23:16 -0800
committerSam Lantinga <slouken@libsdl.org>2010-12-01 12:23:16 -0800
commiteab61c1d94150428b6b3bd6ba60517bbb108b226 (patch)
tree999e742c6109e36a1d758015bc2c92f78ff58ec9 /include/SDL_platform.h
parentf071d07b0d1bde0aab064364e690285bdc57fdc1 (diff)
downloadsdl-eab61c1d94150428b6b3bd6ba60517bbb108b226.tar.gz
Removed support for 10.3.9
Fixed building on Mac OS X 10.5
Diffstat (limited to 'include/SDL_platform.h')
-rw-r--r--include/SDL_platform.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/SDL_platform.h b/include/SDL_platform.h
index 90eed561c..13bdc0d74 100644
--- a/include/SDL_platform.h
+++ b/include/SDL_platform.h
@@ -74,8 +74,16 @@
#if defined(__APPLE__)
/* lets us know what version of Mac OS X we're compiling on */
#include "AvailabilityMacros.h"
-#ifdef MAC_OS_X_VERSION_10_3
-#include "TargetConditionals.h" /* this header is in 10.3 or later */
+#include "TargetConditionals.h"
+#ifndef MAC_OS_X_VERSION_10_4
+#define MAC_OS_X_VERSION_10_4 1040
+#endif
+#ifndef MAC_OS_X_VERSION_10_5
+#define MAC_OS_X_VERSION_10_5 1050
+#endif
+#ifndef MAC_OS_X_VERSION_10_6
+#define MAC_OS_X_VERSION_10_6 1060
+#endif
#if TARGET_OS_IPHONE
/* if compiling for iPhone */
#undef __IPHONEOS__
@@ -86,12 +94,6 @@
#undef __MACOSX__
#define __MACOSX__ 1
#endif /* TARGET_OS_IPHONE */
-#else
-/* if earlier verion of Mac OS X than version 10.3 */
-#undef __MACOSX__
-#define __MACOSX__ 1
-#endif
-
#endif /* defined(__APPLE__) */
#if defined(__NetBSD__)