# HG changeset patch # User Sam Lantinga # Date 1140513113 0 # Node ID 983df4f9c1c6d917698189c8e5ac8a4aba08d5de # Parent 6f6c8ac0db153225ea04621a90519c73ec25f409 Added a test case diff -r 6f6c8ac0db15 -r 983df4f9c1c6 test/testendian.c --- a/test/testendian.c Tue Feb 21 08:48:12 2006 +0000 +++ b/test/testendian.c Tue Feb 21 09:11:53 2006 +0000 @@ -14,6 +14,54 @@ Uint64 value64 = 0xEFBEADDECDAB3412LL; #endif + printf("This system is running %s\n", +#if __AIX__ + "AIX" +#elif __AMIGA__ + "AmigaOS" +#elif __BEOS__ + "BeOS" +#elif __BSDI__ + "BSDI" +#elif __DREAMCAST__ + "Dreamcast" +#elif __FREEBSD__ + "FreeBSD" +#elif __HPUX__ + "HP-UX" +#elif __IRIX__ + "Irix" +#elif __LINUX__ + "Linux" +#elif __MACOS__ + "MacOS Classic" +#elif __MACOSX__ + "MacOS 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 +#else + "an unknown operating system!" +#endif + ); + printf("This is a %s endian machine.\n", (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? "little" : "big"); printf("Value 16 = 0x%X, swapped = 0x%X\n", value16, SDL_Swap16(value16));