r388 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Nov 28 22:31:31 EST 2005


Author: icculus
Date: 2005-11-28 22:31:31 -0500 (Mon, 28 Nov 2005)
New Revision: 388

Modified:
   trunk/code/qcommon/q_platform.h
Log:

Make sure Q3_BIG_ENDIAN and Q3_LITTLE_ENDIAN are defined correctly for
 PowerPC/x86 Mac OS X. Fixes Bugzilla #2510.



Modified: trunk/code/qcommon/q_platform.h
===================================================================
--- trunk/code/qcommon/q_platform.h	2005-11-29 00:50:04 UTC (rev 387)
+++ trunk/code/qcommon/q_platform.h	2005-11-29 03:31:31 UTC (rev 388)
@@ -93,20 +93,25 @@
 
 //============================================================== 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
 #define PATH_SEP '/'
 
 #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 ===




More information about the quake3-commits mailing list