|
|
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 defione is here for newcpu.c compatibility.
20: * In WinUae, it's defined in debug.h" */
21: #ifndef MAX_LINEWIDTH
22: #define MAX_LINEWIDTH 100
23: #endif
24:
25: /* Laurent */
26: /* here only to allow newcpu.c to compile */
27: /* Should be removed when newcpu.c 'll be relooked for hatari only*/
28:
29: // Laurent : I don't know what to do with these variables, so, for now, I've put them here !!!
30: int vpos;
31: int quit_program; // declared as "int quit_program = 0;" in main.c
32: //WinUae ChangeLog: Improve quitting/resetting behaviour: Move quit_program from GUI
33: //WinUae ChangeLog: quit_program is now handled in vsync_handler() and m68k_go().
34:
35: #ifndef REGPARAM
36: #define REGPARAM
37: #endif
38:
39: #ifndef REGPARAM2
40: #define REGPARAM2
41: #endif
42:
43: #ifndef REGPARAM3
44: #define REGPARAM3
45: #endif
46:
47: #ifndef TCHAR
48: #define TCHAR char
49: #endif
50:
51: #ifndef STATIC_INLINE
52: #define STATIC_INLINE static inline
53: #endif
54:
55: #define _vsnprintf vsnprintf
56: #define _tcsncmp strncmp
57: #define _istspace isspace
58: #define _tcscmp strcmp
59: #define _tcslen strlen
60: #define _tcsstr strstr
61: #define _tcscpy strcpy
62: #define _tcsncpy strncpy
63: #define _tcscat strcat
64: #define _stprintf sprintf
65:
66: #define _vsntprintf printf
67:
68: #define f_out fprintf
69:
70: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.