From ec57fec75d696c70e4d1f1247d8a8ac428bea29f Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 12 Jun 2004 09:37:59 +0000 Subject: [PATCH] Define ArchSwapx(n) to OSSwapIntx(n). For constants, OSSwapIntx uses the preprocessor, For non-constants, it uses inline assembly. Add some typedefs and #defines to work around namespace pollution. --- stepmania/src/archutils/Darwin/arch_setup.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/archutils/Darwin/arch_setup.h b/stepmania/src/archutils/Darwin/arch_setup.h index bb7d5503f2..f6f7876af7 100644 --- a/stepmania/src/archutils/Darwin/arch_setup.h +++ b/stepmania/src/archutils/Darwin/arch_setup.h @@ -1,5 +1,10 @@ +typedef unsigned char UInt8; +typedef unsigned short UInt16; +typedef unsigned long UInt32; +typedef unsigned long long UInt64; +#define __TYPES__ #include - +#undef __TYPES__ #define DARWIN 1 #define NEED_POWF #define NEED_SQRTF