Mercurial > sdl-ios-xcode
comparison src/SDL.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 | a67a961e2171 |
children | c5925cd41955 |
comparison
equal
deleted
inserted
replaced
3318:f085091f74cd | 3319:63d4517fc4ac |
---|---|
273 /* Get the library source revision */ | 273 /* Get the library source revision */ |
274 int | 274 int |
275 SDL_GetRevision(void) | 275 SDL_GetRevision(void) |
276 { | 276 { |
277 return SDL_REVISION; | 277 return SDL_REVISION; |
278 } | |
279 | |
280 /* Get the name of the platform */ | |
281 const char * | |
282 SDL_GetPlatform() | |
283 { | |
284 #if __AIX__ | |
285 return "AIX"; | |
286 #elif __HAIKU__ | |
287 /* Haiku must appear here before BeOS, since it also defines __BEOS__ */ | |
288 return "Haiku"; | |
289 #elif __BEOS__ | |
290 return "BeOS"; | |
291 #elif __BSDI__ | |
292 return "BSDI"; | |
293 #elif __DREAMCAST__ | |
294 return "Dreamcast"; | |
295 #elif __FREEBSD__ | |
296 return "FreeBSD"; | |
297 #elif __HPUX__ | |
298 return "HP-UX"; | |
299 #elif __IRIX__ | |
300 return "Irix"; | |
301 #elif __LINUX__ | |
302 return "Linux"; | |
303 #elif __MINT__ | |
304 return "Atari MiNT"; | |
305 #elif __MACOS__ | |
306 return "MacOS Classic"; | |
307 #elif __MACOSX__ | |
308 return "Mac OS X"; | |
309 #elif __NETBSD__ | |
310 return "NetBSD"; | |
311 #elif __OPENBSD__ | |
312 return "OpenBSD"; | |
313 #elif __OS2__ | |
314 return "OS/2"; | |
315 #elif __OSF__ | |
316 return "OSF/1"; | |
317 #elif __QNXNTO__ | |
318 return "QNX Neutrino"; | |
319 #elif __RISCOS__ | |
320 return "RISC OS"; | |
321 #elif __SOLARIS__ | |
322 return "Solaris"; | |
323 #elif __WIN32__ | |
324 #ifdef _WIN32_WCE | |
325 return "Windows CE"; | |
326 #else | |
327 return "Windows"; | |
328 #endif | |
329 #elif __IPHONEOS__ | |
330 return "iPhone OS"; | |
331 #else | |
332 return "Unknown (see SDL_platform.h)"; | |
333 #endif | |
278 } | 334 } |
279 | 335 |
280 #if defined(__WIN32__) | 336 #if defined(__WIN32__) |
281 | 337 |
282 #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL)) | 338 #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL)) |