From b08947451b3fbd5b88462a18787e13f84983f214 Mon Sep 17 00:00:00 2001 From: icculus Date: Tue, 29 Nov 2005 03:31:31 +0000 Subject: Make sure Q3_BIG_ENDIAN and Q3_LITTLE_ENDIAN are defined correctly for PowerPC/x86 Mac OS X. Fixes Bugzilla #2510. git-svn-id: svn://svn.icculus.org/quake3/trunk@388 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/q_platform.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'code') diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index c77f8c4..2fddaee 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -93,7 +93,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA //============================================================== MAC OS X === -#if defined(MACOS_X) +#if defined(MACOS_X) || defined(__APPLE_CC__) + +// make sure this is defined, just for sanity's sake... +#ifndef MACOS_X +#define MACOS_X +#endif #define OS_STRING "macosx" #define ID_INLINE inline @@ -101,12 +106,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifdef __ppc__ #define ARCH_STRING "ppc" +#define Q3_BIG_ENDIAN #elif defined __i386__ #define ARCH_STRING "i386" +#define Q3_LITTLE_ENDIAN #endif -#define Q3_BIG_ENDIAN - #endif //=================================================================== MAC === -- cgit v1.2.3