62 |
|
#endif |
63 |
|
|
64 |
|
|
65 |
< |
#include <AvailabilityMacros.h> |
65 |
> |
#ifdef AVAILABILITYMACROS |
66 |
> |
# include <AvailabilityMacros.h> |
67 |
> |
#endif |
68 |
|
|
69 |
|
/* Emulator and host address space are distinct */ |
70 |
|
#ifndef REAL_ADDRESSING |
74 |
|
/* Linear address translation (i.e. just an offset between Emulator & host) */ |
75 |
|
#ifndef DIRECT_ADDRESSING |
76 |
|
# ifdef MAC_OS_X_VERSION_10_2 |
77 |
< |
/* For some reason, compiling on 10.2 with DIRECT_ADDRESSING enabled */ |
78 |
< |
/* gives an app that doesn't seem to me able to write to its screen! */ |
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 |
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; |