46 |
|
typedef signed short int16; |
47 |
|
typedef unsigned long uint32; |
48 |
|
typedef signed long int32; |
49 |
+ |
|
50 |
+ |
#ifdef __GNUC__ |
51 |
+ |
typedef unsigned long long loff_t; |
52 |
+ |
#endif |
53 |
+ |
|
54 |
+ |
#ifdef __SASC |
55 |
|
typedef char bool; |
56 |
|
#define true 1 |
57 |
|
#define false 0 |
58 |
|
typedef LONG loff_t; |
59 |
+ |
#endif |
60 |
|
|
61 |
|
// Time data type for Time Manager emulation |
62 |
|
typedef struct timeval tm_time_t; |
63 |
|
|
64 |
+ |
// Offset Mac->AmigaOS time in seconds |
65 |
+ |
#define TIME_OFFSET 0x8b31ef80 |
66 |
+ |
|
67 |
|
// Endianess conversion (not needed) |
68 |
|
#define ntohs(x) (x) |
69 |
|
#define ntohl(x) (x) |
70 |
|
#define htons(x) (x) |
71 |
|
#define htonl(x) (x) |
72 |
|
|
73 |
+ |
// Some systems don't define this |
74 |
+ |
#ifndef AFF_68060 |
75 |
+ |
#define AFF_68060 (1L<<7) |
76 |
+ |
#endif |
77 |
+ |
|
78 |
|
#endif |