mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 00:56:24 -05:00
@@ -131,66 +131,6 @@ static void plat_testEndian (void)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @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.
|
||||
*/
|
||||
@@ -207,7 +147,7 @@ int test_platform (void)
|
||||
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"
|
||||
|
||||
@@ -172,7 +172,7 @@ int main( int argc, char *argv[] )
|
||||
SDL_ATprintErr( "Tests run with SDL %d.%d.%d revision %d\n",
|
||||
ver.major, ver.minor, ver.patch, rev );
|
||||
SDL_ATprintErr( "System is running %s and is %s endian\n",
|
||||
platform_getPlatform(),
|
||||
SDL_GetPlatform(),
|
||||
#ifdef SDL_LIL_ENDIAN
|
||||
"little"
|
||||
#else
|
||||
|
||||
@@ -157,58 +157,7 @@ main(int argc, char *argv[])
|
||||
verbose = SDL_FALSE;
|
||||
}
|
||||
if (verbose) {
|
||||
printf("This system is running %s\n",
|
||||
#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
|
||||
);
|
||||
printf("This system is running %s\n", SDL_GetPlatform());
|
||||
}
|
||||
|
||||
status += TestTypes(verbose);
|
||||
|
||||
Reference in New Issue
Block a user