28 |
|
#include <stdlib.h> |
29 |
|
#include <string.h> |
30 |
|
|
31 |
+ |
#include "user_strings_amiga.h" |
32 |
+ |
|
33 |
|
// Are the Mac and the host address space the same? |
34 |
|
#define REAL_ADDRESSING 1 |
35 |
|
|
39 |
|
// Is the Mac ROM write protected? |
40 |
|
#define ROM_IS_WRITE_PROTECTED 0 |
41 |
|
|
42 |
+ |
// ExtFS is supported |
43 |
+ |
#define SUPPORTS_EXTFS 1 |
44 |
+ |
|
45 |
|
// Data types |
46 |
|
typedef unsigned char uint8; |
47 |
|
typedef signed char int8; |
49 |
|
typedef signed short int16; |
50 |
|
typedef unsigned long uint32; |
51 |
|
typedef signed long int32; |
52 |
+ |
|
53 |
+ |
#ifdef __GNUC__ |
54 |
+ |
typedef unsigned long long loff_t; |
55 |
+ |
#endif |
56 |
+ |
|
57 |
+ |
#ifdef __SASC |
58 |
|
typedef char bool; |
59 |
|
#define true 1 |
60 |
|
#define false 0 |
61 |
|
typedef LONG loff_t; |
62 |
+ |
#endif |
63 |
|
|
64 |
|
// Time data type for Time Manager emulation |
65 |
|
typedef struct timeval tm_time_t; |
66 |
|
|
67 |
+ |
// Offset Mac->AmigaOS time in seconds |
68 |
+ |
#define TIME_OFFSET 0x8b31ef80 |
69 |
+ |
|
70 |
|
// Endianess conversion (not needed) |
71 |
|
#define ntohs(x) (x) |
72 |
|
#define ntohl(x) (x) |
73 |
|
#define htons(x) (x) |
74 |
|
#define htonl(x) (x) |
75 |
|
|
76 |
+ |
// Some systems don't define this |
77 |
+ |
#ifndef AFF_68060 |
78 |
+ |
#define AFF_68060 (1L<<7) |
79 |
+ |
#endif |
80 |
+ |
|
81 |
|
#endif |