2014-02-05 23:00:23 +00:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/SysMachine.h
|
2013-04-06 22:57:17 +00:00
|
|
|
@@ -0,0 +1,30 @@
|
2008-07-28 20:21:01 +00:00
|
|
|
+#ifndef _MACHDEFS_H
|
|
|
|
+#define _MACHDEFS_H
|
|
|
|
+
|
|
|
|
+
|
2013-04-06 22:57:17 +00:00
|
|
|
+#include <endian.h>
|
2008-07-28 20:21:01 +00:00
|
|
|
+
|
2013-04-06 22:57:17 +00:00
|
|
|
+#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
|
|
+#undef MACH_BIG_ENDIAN_WORDS
|
2008-07-28 20:21:01 +00:00
|
|
|
+#undef MACH_BIG_ENDIAN_BITFIELD
|
2013-04-06 22:57:17 +00:00
|
|
|
+#elif __BYTE_ORDER == __BIG_ENDIAN
|
|
|
|
+#define MACH_BIG_ENDIAN_WORDS
|
|
|
|
+#define MACH_BIG_ENDIAN_BITFIELD
|
|
|
|
+#endif
|
2008-07-28 20:21:01 +00:00
|
|
|
+
|
|
|
|
+typedef signed char MachInt8;
|
|
|
|
+typedef unsigned char MachUInt8;
|
|
|
|
+#define MACH_TYPE_8BIT char
|
|
|
|
+
|
|
|
|
+typedef signed short MachInt16;
|
|
|
|
+typedef unsigned short MachUInt16;
|
|
|
|
+#define MACH_TYPE_16BIT short
|
|
|
|
+
|
|
|
|
+typedef signed int MachInt32;
|
|
|
|
+typedef unsigned int MachUInt32;
|
|
|
|
+#define MACH_TYPE_32BIT int
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|