43 |
|
#include <stdlib.h> |
44 |
|
#include <string.h> |
45 |
|
|
46 |
+ |
#ifdef HAVE_PTHREADS |
47 |
+ |
# include <pthread.h> |
48 |
+ |
#endif |
49 |
+ |
|
50 |
|
#ifdef HAVE_FCNTL_H |
51 |
|
# include <fcntl.h> |
52 |
|
#endif |
182 |
|
typedef uae_u32 uaecptr; |
183 |
|
|
184 |
|
/* Alignment restrictions */ |
185 |
< |
#if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) |
185 |
> |
#if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) || defined(__x86_64__) |
186 |
|
# define CPU_CAN_ACCESS_UNALIGNED |
187 |
|
#endif |
188 |
|
|
235 |
|
|
236 |
|
#else /* WORDS_BIGENDIAN */ |
237 |
|
|
238 |
< |
#ifdef __i386__ |
238 |
> |
#if defined(__i386__) || defined(__x86_64__) |
239 |
|
|
240 |
|
/* Intel x86 */ |
241 |
|
#define X86_PPRO_OPT |
306 |
|
#define ENUMNAME(name) name |
307 |
|
#define write_log printf |
308 |
|
|
309 |
< |
#ifdef X86_ASSEMBLY |
309 |
> |
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY) |
310 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |
311 |
|
#else |
312 |
|
#define ASM_SYM_FOR_FUNC(a) |