183 |
|
#error No 4 byte type, you lose. |
184 |
|
#endif |
185 |
|
|
186 |
+ |
#if SIZEOF_LONG == 8 |
187 |
+ |
typedef unsigned long uint64; |
188 |
+ |
typedef long int64; |
189 |
+ |
#elif SIZEOF_LONG_LONG == 8 |
190 |
+ |
typedef unsigned long long uint64; |
191 |
+ |
typedef long long int64; |
192 |
+ |
#else |
193 |
+ |
#error No 8 byte type, you lose. |
194 |
+ |
#endif |
195 |
+ |
|
196 |
+ |
#if SIZEOF_VOID_P == 4 |
197 |
+ |
typedef uint32 uintptr; |
198 |
+ |
typedef int32 intptr; |
199 |
+ |
#elif SIZEOF_VOID_P == 8 |
200 |
+ |
typedef uint64 uintptr; |
201 |
+ |
typedef int64 intptr; |
202 |
+ |
#else |
203 |
+ |
#error Unsupported size of pointer |
204 |
+ |
#endif |
205 |
+ |
|
206 |
|
#else |
207 |
|
#include <support/SupportDefs.h> |
208 |
|
#endif // __BEOS__ |