comparison include/SDL_platform.h @ 2438:fe9d15725d96 gsoc2008_iphone

Added macro so that targetconditionals.h isn't included when compiling from versions of Mac OS X earlier than 10.3 (the header file doesn't exist there). Instead, it is just assumed that you want to compile for Mac OS X rather than iPhone ... a fine assumption since you need 10.5 to compile for iPhone.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 15 Aug 2008 18:51:28 +0000
parents 73d04b25c118
children
comparison
equal deleted inserted replaced
2437:83cf833940ba 2438:fe9d15725d96
57 #undef __LINUX__ 57 #undef __LINUX__
58 #define __LINUX__ 1 58 #define __LINUX__ 1
59 #endif 59 #endif
60 60
61 #if defined(__APPLE__) 61 #if defined(__APPLE__)
62 #include "targetconditionals.h" /* Mac OS X 10.3 and later */ 62 /* lets us know what version of Mac OS X we're compiling on */
63 #include "AvailabilityMacros.h"
64 #ifdef MAC_OS_X_VERSION_10_3
65 #include "targetconditionals.h" /* this header is in 10.3 or later */
63 #if TARGET_OS_IPHONE 66 #if TARGET_OS_IPHONE
67 /* if compiling for iPhone */
64 #undef __IPHONEOS__ 68 #undef __IPHONEOS__
65 #define __IPHONEOS__ 1 69 #define __IPHONEOS__ 1
66 #undef __MACOSX__ 70 #undef __MACOSX__
67 #else 71 #else
72 /* if not compiling for iPhone */
68 #undef __MACOSX__ 73 #undef __MACOSX__
69 #define __MACOSX__ 1 74 #define __MACOSX__ 1
70 #endif /* TARGET_OS_IPHONE */ 75 #endif /* TARGET_OS_IPHONE */
76 #else
77 /* if earlier verion of Mac OS X than version 10.3 */
78 #undef __MACOSX__
79 #define __MACOSX__ 1
80 #endif
81
71 #endif /* defined(__APPLE__) */ 82 #endif /* defined(__APPLE__) */
72 83
73 #if defined(__NetBSD__) 84 #if defined(__NetBSD__)
74 #undef __NETBSD__ 85 #undef __NETBSD__
75 #define __NETBSD__ 1 86 #define __NETBSD__ 1