diff test/automated/platform/platform.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 50848072885e
children c32c53fca10d
line wrap: on
line diff
--- a/test/automated/platform/platform.c	Sat Sep 26 10:22:35 2009 +0000
+++ b/test/automated/platform/platform.c	Sat Sep 26 10:32:14 2009 +0000
@@ -132,66 +132,6 @@
 
 
 /**
- * @brief Gets the name of the platform.
- */
-const char *platform_getPlatform (void)
-{
-   return
-#if __AIX__   
-      "AIX"
-#elif __HAIKU__
-/* Haiku must appear here before BeOS, since it also defines __BEOS__ */
-      "Haiku"
-#elif __BEOS__
-      "BeOS"
-#elif __BSDI__
-      "BSDI"
-#elif __DREAMCAST__
-      "Dreamcast"
-#elif __FREEBSD__
-      "FreeBSD"
-#elif __HPUX__ 
-      "HP-UX"
-#elif __IRIX__ 
-      "Irix"
-#elif __LINUX__
-      "Linux"
-#elif __MINT__
-      "Atari MiNT"
-#elif __MACOS__
-      "MacOS Classic"
-#elif __MACOSX__
-      "Mac OS X"
-#elif __NETBSD__
-      "NetBSD"
-#elif __OPENBSD__
-      "OpenBSD"
-#elif __OS2__ 
-      "OS/2"
-#elif __OSF__ 
-      "OSF/1"
-#elif __QNXNTO__
-      "QNX Neutrino"
-#elif __RISCOS__
-      "RISC OS"
-#elif __SOLARIS__
-      "Solaris"
-#elif __WIN32__
-#ifdef _WIN32_WCE
-      "Windows CE"
-#else         
-      "Windows"
-#endif
-#elif __IPHONEOS__
-      "iPhone OS"
-#else         
-      "an unknown operating system! (see SDL_platform.h)"
-#endif     
-      ;
-}
-
-
-/**
  * @brief Platform test entrypoint.
  */
 #ifdef TEST_STANDALONE
@@ -207,7 +147,7 @@
    SDL_ATinit( "Platform" );
 
    /* Debug information. */
-   SDL_ATprintVerbose( 1, "%s System detected\n", platform_getPlatform() );
+   SDL_ATprintVerbose( 1, "%s System detected\n", SDL_GetPlatform() );
    SDL_ATprintVerbose( 1, "System is %s endian\n",
 #ifdef SDL_LIL_ENDIAN
          "little"