21 |
|
#ifndef SYSDEPS_H |
22 |
|
#define SYSDEPS_H |
23 |
|
|
24 |
+ |
#ifdef __POWERPC__ |
25 |
+ |
#define NO_STD_NAMESPACE |
26 |
+ |
#endif |
27 |
+ |
|
28 |
|
#include <assert.h> |
29 |
|
#include <support/SupportDefs.h> |
30 |
|
#include <support/ByteOrder.h> |
49 |
|
// ExtFS is supported |
50 |
|
#define SUPPORTS_EXTFS 1 |
51 |
|
|
52 |
+ |
// BSD socket API is supported |
53 |
+ |
#define SUPPORTS_UDP_TUNNEL 1 |
54 |
+ |
|
55 |
|
// mon is not supported |
56 |
|
#undef ENABLE_MON |
57 |
|
|
58 |
|
// Time data type for Time Manager emulation |
59 |
|
typedef bigtime_t tm_time_t; |
60 |
|
|
54 |
– |
// Offset Mac->BeOS time in seconds |
55 |
– |
#define TIME_OFFSET 0x7c25b080 |
56 |
– |
|
61 |
|
// 64 bit file offsets |
62 |
|
typedef off_t loff_t; |
63 |
|
|
64 |
+ |
// Networking types |
65 |
+ |
#define PF_INET AF_INET |
66 |
+ |
typedef int socklen_t; |
67 |
+ |
|
68 |
|
// UAE CPU data types |
69 |
|
#define uae_s8 int8 |
70 |
|
#define uae_u8 uint8 |
77 |
|
typedef uae_u32 uaecptr; |
78 |
|
#define VAL64(a) (a ## LL) |
79 |
|
#define UVAL64(a) (a ## uLL) |
80 |
+ |
typedef uint32 uintptr; |
81 |
+ |
typedef int32 intptr; |
82 |
|
|
83 |
|
// UAE CPU defines |
84 |
|
#ifdef __i386__ |
101 |
|
#endif |
102 |
|
|
103 |
|
#define X86_ASSEMBLY |
104 |
+ |
#define UNALIGNED_PROFITABLE |
105 |
+ |
#define OPTIMIZED_FLAGS |
106 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |
107 |
|
#define REGPARAM __attribute__((regparm(3))) |
108 |
|
|
115 |
|
static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;} |
116 |
|
|
117 |
|
#undef X86_ASSEMBLY |
118 |
+ |
#define UNALIGNED_PROFITABLE |
119 |
+ |
#undef OPTIMIZED_FLAGS |
120 |
|
#define ASM_SYM_FOR_FUNC(a) |
121 |
|
#define REGPARAM |
122 |
|
#endif |
128 |
|
#define call_mem_put_func(func, addr, v) ((*func)(addr, v)) |
129 |
|
#define __inline__ inline |
130 |
|
#define CPU_EMU_SIZE 0 |
117 |
– |
#undef USE_MAPPED_MEMORY |
118 |
– |
#undef CAN_MAP_MEMORY |
131 |
|
#undef NO_INLINE_MEMORY_ACCESS |
132 |
|
#undef MD_HAVE_MEM_1_FUNCS |
133 |
|
#undef USE_COMPILER |