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:
@@ -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>
|
#include <libkern/OSByteOrder.h>
|
||||||
|
#undef __TYPES__
|
||||||
#define DARWIN 1
|
#define DARWIN 1
|
||||||
#define NEED_POWF
|
#define NEED_POWF
|
||||||
#define NEED_SQRTF
|
#define NEED_SQRTF
|
||||||
|
|||||||
Reference in New Issue
Block a user