The Build Engine

- Main Page
- Classes
- Files

- File List
- File Members

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