Mercurial > sdl-ios-xcode
comparison include/SDL_platform.h @ 2765:f55c87ae336b
Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch
by Holmes Futrell, mentored by Sam Lantinga
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 04 Oct 2008 06:46:59 +0000 |
parents | 204be4fc2726 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2764:4868c0df2e83 | 2765:f55c87ae336b |
---|---|
55 #endif | 55 #endif |
56 #if defined(linux) || defined(__linux) || defined(__linux__) | 56 #if defined(linux) || defined(__linux) || defined(__linux__) |
57 #undef __LINUX__ | 57 #undef __LINUX__ |
58 #define __LINUX__ 1 | 58 #define __LINUX__ 1 |
59 #endif | 59 #endif |
60 | |
60 #if defined(__APPLE__) | 61 #if defined(__APPLE__) |
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 */ | |
66 #if TARGET_OS_IPHONE | |
67 /* if compiling for iPhone */ | |
68 #undef __IPHONEOS__ | |
69 #define __IPHONEOS__ 1 | |
70 #undef __MACOSX__ | |
71 #else | |
72 /* if not compiling for iPhone */ | |
61 #undef __MACOSX__ | 73 #undef __MACOSX__ |
62 #define __MACOSX__ 1 | 74 #define __MACOSX__ 1 |
63 #elif defined(macintosh) | 75 #endif /* TARGET_OS_IPHONE */ |
64 #undef __MACOS__ | 76 #else |
65 #define __MACOS__ 1 | 77 /* if earlier verion of Mac OS X than version 10.3 */ |
78 #undef __MACOSX__ | |
79 #define __MACOSX__ 1 | |
66 #endif | 80 #endif |
81 | |
82 #endif /* defined(__APPLE__) */ | |
83 | |
67 #if defined(__NetBSD__) | 84 #if defined(__NetBSD__) |
68 #undef __NETBSD__ | 85 #undef __NETBSD__ |
69 #define __NETBSD__ 1 | 86 #define __NETBSD__ 1 |
70 #endif | 87 #endif |
71 #if defined(__OpenBSD__) | 88 #if defined(__OpenBSD__) |