diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-29 03:31:31 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-29 03:31:31 +0000 |
commit | b08947451b3fbd5b88462a18787e13f84983f214 (patch) | |
tree | d1731f700096b3048ef59601ccd5f06cd4545da6 /code | |
parent | 315c6a8522b8348b50609ec81d24d6c770a39752 (diff) | |
download | ioquake3-aero-b08947451b3fbd5b88462a18787e13f84983f214.tar.gz ioquake3-aero-b08947451b3fbd5b88462a18787e13f84983f214.zip |
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
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/q_platform.h | 11 |
1 files changed, 8 insertions, 3 deletions
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 === |