2 * UAE - The Un*x Amiga Emulator - CPU core
4 * Try to include the right system headers and get other system-specific
5 * stuff right & other collected kludges.
7 * If you think about modifying this, think twice. Some systems rely on
8 * the exact order of the #include statements. That's also the reason
9 * why everything gets included unconditionally regardless of whether
10 * it's actually needed by the .c file.
12 * Copyright 1996, 1997 Bernd Schmidt
14 * Adaptation to Hatari by Thomas Huth
15 * Adaptation to Virtual Jagaur by James Hammons
17 * This file is distributed under the GNU Public License, version 3 or at
18 * your option any later version. Read the file GPLv3 for details.
31 #error "Your compiler is not ANSI. Get a real one."
38 #if EEXIST == ENOTEMPTY
39 #define BROKEN_OS_PROBABLY_AIX
43 #define S_IRUSR S_IREAD
44 #define S_IWUSR S_IWRITE
45 #define S_IXUSR S_IEXEC
46 #define S_ISDIR(val) (S_IFDIR & val)
56 #include "devices/timer.h"
57 #include "osdep/posixemu.h"
60 #define strcasecmp stricmp
61 #define memcpy q_memcpy
62 #define memset q_memset
63 #define strdup my_strdup
65 #define creat(x,y) open("T:creat",O_CREAT|O_RDWR|O_TRUNC,777)
66 extern void * q_memset(void *, int, size_t);
67 extern void * q_memcpy(void *, const void *, size_t);
71 /* Acorn specific stuff */
74 #define S_IRUSR S_IREAD
75 #define S_IWUSR S_IWRITE
76 #define S_IXUSR S_IEXEC
78 #define strcasecmp stricmp
82 /* We can only rely on GNU C getting enums right. Mickeysoft VSC++ is known
83 * to have problems, and it's likely that other compilers choke too. */
85 #define ENUMDECL typedef enum
86 #define ENUMNAME(name) name
89 #define ENUMNAME(name) ; typedef int name
92 /* When using GNU C, make abort more useful. */
96 fprintf(stderr, "Internal error; file %s, line %d\n", __FILE__, __LINE__); \
106 #ifndef STATIC_INLINE
107 #define STATIC_INLINE static __inline__
111 * You can specify numbers from 0 to 5 here. It is possible that higher
112 * numbers will make the CPU emulation slightly faster, but if the setting
113 * is too high, you will run out of memory while compiling.
114 * Best to leave this as it is.
116 #define CPU_EMU_SIZE 0
118 #endif /* ifndef UAE_SYSDEPS_H */