Mercurial > sdl-ios-xcode
comparison include/SDL_platform.h @ 2370:73d04b25c118 gsoc2008_iphone
Added macros to detect if you are compiling for iPhone OS vs Mac OS X.
author | Holmes Futrell <hfutrell@umail.ucsb.edu> |
---|---|
date | Fri, 18 Jul 2008 18:41:08 +0000 |
parents | c9aa6bcb26f3 |
children | fe9d15725d96 |
comparison
equal
deleted
inserted
replaced
2369:76e4bb13c937 | 2370:73d04b25c118 |
---|---|
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 #include "targetconditionals.h" /* Mac OS X 10.3 and later */ | |
63 #if TARGET_OS_IPHONE | |
64 #undef __IPHONEOS__ | |
65 #define __IPHONEOS__ 1 | |
66 #undef __MACOSX__ | |
67 #else | |
61 #undef __MACOSX__ | 68 #undef __MACOSX__ |
62 #define __MACOSX__ 1 | 69 #define __MACOSX__ 1 |
63 #elif defined(macintosh) | 70 #endif /* TARGET_OS_IPHONE */ |
64 #undef __MACOS__ | 71 #endif /* defined(__APPLE__) */ |
65 #define __MACOS__ 1 | 72 |
66 #endif | |
67 #if defined(__NetBSD__) | 73 #if defined(__NetBSD__) |
68 #undef __NETBSD__ | 74 #undef __NETBSD__ |
69 #define __NETBSD__ 1 | 75 #define __NETBSD__ 1 |
70 #endif | 76 #endif |
71 #if defined(__OpenBSD__) | 77 #if defined(__OpenBSD__) |