-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoscmpat.h
69 lines (52 loc) · 1.55 KB
/
doscmpat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* DOS compatibility header. Takes care of some legacy code issues.
*
* Written by Ryan C. Gordon ([email protected])
*
* Please do NOT harrass Ken Silverman about any code modifications
* (including this file) to BUILD.
*/
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
#ifndef _INCLUDE_DOS_COMPAT_H_
#define _INCLUDE_DOS_COMPAT_H_
#if (!defined PLATFORM_DOS)
#error PLATFORM_DOS is not defined.
#endif
#if (defined PLATFORM_SUPPORTS_SDL)
#warning You have PLATFORM_SUPPORTS_SDL defined.
#warning This is almost certainly wrong.
#endif
#define PLATFORM_TIMER_HZ 280
#if ((!defined __WATCOMC__) && (!defined __int64))
#define __int64 long long
#endif
// need these for something where we abstracted with SDL...
typedef unsigned long Uint32;
typedef unsigned short Uint16;
typedef unsigned char Uint8;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
#include <conio.h>
#include <i86.h>
#include <dos.h>
#include <process.h>
#include <direct.h>
#pragma intrinsic(min);
#pragma intrinsic(max);
void printext16(long xpos, long ypos, short col, short backcol, char name[82], char fontsize);
void *kkmalloc(size_t size);
void *kmalloc(size_t i1);
void kkfree(void *i1);
void kfree(void *i1);
void setstereo(long dastereomode);
void printscreeninterrupt(void);
void setvmode(int i1);
#pragma aux setvmode =\
"int 0x10",\
parm [eax]\
#endif
// end of doscmpat.h ...