68 |
|
#else |
69 |
|
#error "No 4 byte type, you lose." |
70 |
|
#endif |
71 |
+ |
#if SIZEOF_LONG == 8 |
72 |
+ |
typedef unsigned long uint64; |
73 |
+ |
typedef long int64; |
74 |
+ |
#define VAL64(a) (a ## l) |
75 |
+ |
#define UVAL64(a) (a ## ul) |
76 |
+ |
#elif SIZEOF_LONG_LONG == 8 |
77 |
+ |
typedef unsigned long long uint64; |
78 |
+ |
typedef long long int64; |
79 |
+ |
#define VAL64(a) (a ## LL) |
80 |
+ |
#define UVAL64(a) (a ## uLL) |
81 |
+ |
#else |
82 |
+ |
#error "No 8 byte type, you lose." |
83 |
+ |
#endif |
84 |
+ |
#if SIZEOF_VOID_P == 4 |
85 |
+ |
typedef uint32 uintptr; |
86 |
+ |
typedef int32 intptr; |
87 |
+ |
#elif SIZEOF_VOID_P == 8 |
88 |
+ |
typedef uint64 uintptr; |
89 |
+ |
typedef int64 intptr; |
90 |
+ |
#else |
91 |
+ |
#error "Unsupported size of pointer" |
92 |
+ |
#endif |
93 |
|
|
94 |
|
#endif // def __BEOS__ |
95 |
|
|