62 |
|
#endif |
63 |
|
|
64 |
|
|
65 |
+ |
#ifdef AVAILABILITYMACROS |
66 |
+ |
# include <AvailabilityMacros.h> |
67 |
+ |
#endif |
68 |
+ |
|
69 |
|
/* Emulator and host address space are distinct */ |
70 |
|
#ifndef REAL_ADDRESSING |
71 |
< |
#define REAL_ADDRESSING 0 |
71 |
> |
# define REAL_ADDRESSING 0 |
72 |
|
#endif |
73 |
|
|
74 |
|
/* Linear address translation (i.e. just an offset between Emulator & host) */ |
75 |
|
#ifndef DIRECT_ADDRESSING |
76 |
< |
#define DIRECT_ADDRESSING 1 |
76 |
> |
# ifdef MAC_OS_X_VERSION_10_2 |
77 |
> |
/* For some reason, compiling on 10.2 with DIRECT_ADDRESSING enabled gives an */ |
78 |
> |
/* app that never writes to its screen! (i.e. it never calls most of video.cpp) */ |
79 |
> |
# define DIRECT_ADDRESSING 0 |
80 |
> |
# else |
81 |
> |
# define DIRECT_ADDRESSING 1 |
82 |
> |
# endif |
83 |
|
#endif |
84 |
|
|
85 |
|
/* Using 68k emulator */ |
145 |
|
#error "Unsupported size of pointer" |
146 |
|
#endif |
147 |
|
|
148 |
+ |
#ifndef HAVE_LOFF_T |
149 |
+ |
typedef off_t loff_t; |
150 |
+ |
#endif |
151 |
+ |
|
152 |
|
/* Time data type for Time Manager emulation */ |
153 |
|
#ifdef HAVE_CLOCK_GETTIME |
154 |
|
typedef struct timespec tm_time_t; |