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.
22 // JPM = Jean-Paul Mari <djipi.mari@gmail.com>
25 // --- ---------- ------------------------------------------------------------
26 // JPM 06/06/2016 Visual Studio support
38 #error "Your compiler is not ANSI. Get a real one."
46 #if EEXIST == ENOTEMPTY
47 #define BROKEN_OS_PROBABLY_AIX
51 #define S_IRUSR S_IREAD
52 #define S_IWUSR S_IWRITE
53 #define S_IXUSR S_IEXEC
54 #define S_ISDIR(val) (S_IFDIR & val)
64 #include "devices/timer.h"
65 #include "osdep/posixemu.h"
68 #define strcasecmp stricmp
69 #define memcpy q_memcpy
70 #define memset q_memset
71 #define strdup my_strdup
73 #define creat(x,y) open("T:creat",O_CREAT|O_RDWR|O_TRUNC,777)
74 extern void * q_memset(void *, int, size_t);
75 extern void * q_memcpy(void *, const void *, size_t);
79 /* Acorn specific stuff */
82 #define S_IRUSR S_IREAD
83 #define S_IWUSR S_IWRITE
84 #define S_IXUSR S_IEXEC
86 #define strcasecmp stricmp
90 /* We can only rely on GNU C getting enums right. Mickeysoft VSC++ is known
91 * to have problems, and it's likely that other compilers choke too. */
93 #define ENUMDECL typedef enum
94 #define ENUMNAME(name) name
97 #define ENUMNAME(name) ; typedef int name
100 /* When using GNU C, make abort more useful. */
104 fprintf(stderr, "Internal error; file %s, line %d\n", __FILE__, __LINE__); \
114 #ifndef STATIC_INLINE
116 #define STATIC_INLINE static __inline
118 #define STATIC_INLINE static __inline__
123 * You can specify numbers from 0 to 5 here. It is possible that higher
124 * numbers will make the CPU emulation slightly faster, but if the setting
125 * is too high, you will run out of memory while compiling.
126 * Best to leave this as it is.
128 #define CPU_EMU_SIZE 0
130 #endif /* ifndef UAE_SYSDEPS_H */