From df47a63810a13c316141d819af34cfeb26f84c74 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 7 Oct 2011 07:12:18 +0000 Subject: [PATCH] updated my systest tool from uhexen2 git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@492 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Misc/systest.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Misc/systest.c b/Misc/systest.c index c6527d38..2b512cb0 100644 --- a/Misc/systest.c +++ b/Misc/systest.c @@ -62,7 +62,7 @@ #if defined(BYTE_ORDER) && defined(LITTLE_ENDIAN) && defined(BIG_ENDIAN) -# if (BYTE_ORDER != LITTLE_ENDIAN) && (BYTE_ORDER != BIG_ENDIAN) && (BYTE_ORDER != PDP_ENDIAN) +# if (BYTE_ORDER != LITTLE_ENDIAN) && (BYTE_ORDER != BIG_ENDIAN) # error "Unsupported endianness." # endif @@ -96,10 +96,14 @@ # define BYTE_ORDER BIG_ENDIAN # endif -# elif defined(__i386) || defined(__i386__) || /* any x86 */ \ - defined(_M_IX86) || \ - defined(__amd64) || defined(__x86_64__) /* any x64 */ -# define BYTE_ORDER LITTLE_ENDIAN +# elif defined(__i386) || defined(__i386__) || defined(__386__) || defined(_M_IX86) +# define BYTE_ORDER LITTLE_ENDIAN /* any x86 */ + +# elif defined(__amd64) || defined(__x86_64__) || defined(_M_X64) +# define BYTE_ORDER LITTLE_ENDIAN /* any x64 */ + +# elif defined(_M_IA64) +# define BYTE_ORDER LITTLE_ENDIAN /* ia64 / Visual C */ # elif defined (__ppc__) || defined(__POWERPC__) || defined(_M_PPC) # define BYTE_ORDER BIG_ENDIAN /* PPC: big endian */