1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29#ifndef _OS_OSTYPES_H
30#define _OS_OSTYPES_H
31
32typedef unsigned int UInt;
33typedef signed int SInt;
34
35#ifndef __MACTYPES__
36#ifndef __TYPES__
37
38typedef unsigned char UInt8;
39typedef unsigned short UInt16;
40typedef unsigned long UInt32;
41typedef unsigned long long UInt64;
42#if defined(__BIG_ENDIAN__)
43typedef struct UnsignedWide {
44 UInt32 hi;
45 UInt32 lo;
46} UnsignedWide;
47#elif defined(__LITTLE_ENDIAN__)
48typedef struct UnsignedWide {
49 UInt32 lo;
50 UInt32 hi;
51} UnsignedWide;
52#else
53#error Unknown endianess.
54#endif
55
56typedef signed char SInt8;
57typedef signed short SInt16;
58typedef signed long SInt32;
59typedef signed long long SInt64;
60#if defined(__BIG_ENDIAN__)
61typedef struct wide {
62 SInt32 hi;
63 UInt32 lo;
64} wide;
65#elif defined(__LITTLE_ENDIAN__)
66typedef struct wide {
67 UInt32 lo;
68 SInt32 hi;
69} wide;
70#else
71#error Unknown endianess.
72#endif
73
74typedef SInt32 OSStatus;
75typedef UnsignedWide AbsoluteTime;
76typedef UInt32 OptionBits;
77
78typedef unsigned char Boolean;
79
80#endif
81#endif
82
83#if !defined(OS_INLINE)
84# define OS_INLINE static inline
85#endif
86
87#endif
88