|
|
1.1 root 1: /*
2: Hatari - compat.h
3:
4: This file is distributed under the GNU Public License, version 2 or at
5: your option any later version. Read the file gpl.txt for details.
6:
7: This file contains all the includes and defines specific to windows (such as TCHAR)
8: needed by WinUae CPU core.
9: The aim is to have minimum changes in WinUae CPU core for next updates
10: */
11:
12: #ifndef HATARI_COMPAT_H
13: #define HATARI_COMPAT_H
14:
15: #include <stdbool.h>
16:
17: #include "sysconfig.h"
18:
19: /* This define is here to remove some Amiga specific code when compiling */
20: /* It results in ' #if 0 ' code in newcpu.c code */
21: #define AMIGA_ONLY 0
22:
23: /* this defione is here for newcpu.c compatibility.
24: * In WinUae, it's defined in debug.h" */
25: #ifndef MAX_LINEWIDTH
26: #define MAX_LINEWIDTH 100
27: #endif
28:
29: #define RTAREA_DEFAULT 0xf00000
30:
31: /* Laurent */
32: /* here only to allow newcpu.c to compile */
33: /* Should be removed when newcpu.c 'll be relooked for hatari only*/
34:
35: // Laurent : I don't know what to do with these variables, so, for now, I've put them here !!!
36: int kickstart_rom, cloanto_rom;
37: int config_changed;
38: int vpos;
39: int quit_program; // declared as "int quit_program = 0;" in main.c
40: //WinUae ChangeLog: Improve quitting/resetting behaviour: Move quit_program from GUI
41: //WinUae ChangeLog: quit_program is now handled in vsync_handler() and m68k_go().
42:
43: #ifndef REGPARAM
44: #define REGPARAM
45: #endif
46:
47: #ifndef REGPARAM2
48: #define REGPARAM2
49: #endif
50:
51: #ifndef REGPARAM3
52: #define REGPARAM3
53: #endif
54:
55: #ifndef TCHAR
56: #define TCHAR char
57: #endif
58:
59: #ifndef STATIC_INLINE
60: #define STATIC_INLINE static inline
61: #endif
62:
63: #define _vsnprintf vsnprintf
64: #define _tcsncmp strncmp
65: #define _istspace isspace
66: #define _tcscmp strcmp
67: #define _tcslen strlen
68: #define _tcsstr strstr
69: #define _tcscpy strcpy
70: #define _tcsncpy strncpy
71: #define _tcscat strcat
72: #define _stprintf sprintf
73:
74: #define _vsntprintf printf
75:
76: #define f_out fprintf
77:
78: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.