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.

This commit is contained in:
Steve Checkoway
2004-06-12 09:37:59 +00:00
parent e83ddf44bd
commit ec57fec75d
+6 -1
View File
@@ -1,5 +1,10 @@
typedef unsigned char UInt8;
typedef unsigned short UInt16;
typedef unsigned long UInt32;
typedef unsigned long long UInt64;
#define __TYPES__
#include <libkern/OSByteOrder.h>
#undef __TYPES__
#define DARWIN 1
#define NEED_POWF
#define NEED_SQRTF