Mercurial > sdl-ios-xcode
comparison test/testplatform.c @ 3319:63d4517fc4ac
Fixed bug #777
Implemented SDL_GetPlatform()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 26 Sep 2009 10:32:14 +0000 |
parents | c91cb3f0204e |
children | 3427271a2d75 |
comparison
equal
deleted
inserted
replaced
3318:f085091f74cd | 3319:63d4517fc4ac |
---|---|
155 | 155 |
156 if (argv[1] && (SDL_strcmp(argv[1], "-q") == 0)) { | 156 if (argv[1] && (SDL_strcmp(argv[1], "-q") == 0)) { |
157 verbose = SDL_FALSE; | 157 verbose = SDL_FALSE; |
158 } | 158 } |
159 if (verbose) { | 159 if (verbose) { |
160 printf("This system is running %s\n", | 160 printf("This system is running %s\n", SDL_GetPlatform()); |
161 #if __AIX__ | |
162 "AIX" | |
163 #elif __HAIKU__ | |
164 /* Haiku must appear here before BeOS, since it also defines __BEOS__ */ | |
165 "Haiku" | |
166 #elif __BEOS__ | |
167 "BeOS" | |
168 #elif __BSDI__ | |
169 "BSDI" | |
170 #elif __DREAMCAST__ | |
171 "Dreamcast" | |
172 #elif __FREEBSD__ | |
173 "FreeBSD" | |
174 #elif __HPUX__ | |
175 "HP-UX" | |
176 #elif __IRIX__ | |
177 "Irix" | |
178 #elif __LINUX__ | |
179 "Linux" | |
180 #elif __MINT__ | |
181 "Atari MiNT" | |
182 #elif __MACOS__ | |
183 "MacOS Classic" | |
184 #elif __MACOSX__ | |
185 "Mac OS X" | |
186 #elif __NETBSD__ | |
187 "NetBSD" | |
188 #elif __OPENBSD__ | |
189 "OpenBSD" | |
190 #elif __OS2__ | |
191 "OS/2" | |
192 #elif __OSF__ | |
193 "OSF/1" | |
194 #elif __QNXNTO__ | |
195 "QNX Neutrino" | |
196 #elif __RISCOS__ | |
197 "RISC OS" | |
198 #elif __SOLARIS__ | |
199 "Solaris" | |
200 #elif __WIN32__ | |
201 #ifdef _WIN32_WCE | |
202 "Windows CE" | |
203 #else | |
204 "Windows" | |
205 #endif | |
206 #elif __IPHONEOS__ | |
207 "iPhone OS" | |
208 #else | |
209 "an unknown operating system! (see SDL_platform.h)" | |
210 #endif | |
211 ); | |
212 } | 161 } |
213 | 162 |
214 status += TestTypes(verbose); | 163 status += TestTypes(verbose); |
215 status += TestEndian(verbose); | 164 status += TestEndian(verbose); |
216 status += TestCPUInfo(verbose); | 165 status += TestCPUInfo(verbose); |