]> icculus.org git repositories - btb/d2x.git/blob - arch/dos/mm_snd/include/mtypes.h
added pcx_get_dimensions(), other stuff from d2src
[btb/d2x.git] / arch / dos / mm_snd / include / mtypes.h
1 #ifndef MTYPES_H
2 #define MTYPES_H
3
4 /*
5         MikMod atomic types:
6         ====================
7 */
8
9
10 #ifdef __OS2__
11
12 typedef signed char     SBYTE;          /* has to be 1 byte signed */
13 typedef unsigned char   UBYTE;          /* has to be 1 byte unsigned */
14 typedef short           SWORD;          /* has to be 2 bytes signed */
15 typedef unsigned short  UWORD;          /* has to be 2 bytes unsigned */
16 typedef long            SLONG;          /* has to be 4 bytes signed */
17 /* ULONG and BOOL are already defined in OS2.H */
18
19 #elif defined(__alpha)
20
21 typedef char            SBYTE;          /* has to be 1 byte signed */
22 typedef unsigned char   UBYTE;          /* has to be 1 byte unsigned */
23 typedef short           SWORD;          /* has to be 2 bytes signed */
24 typedef unsigned short  UWORD;          /* has to be 2 bytes unsigned */
25 /* long is 8 bytes on dec alpha - RCA */
26 typedef int             SLONG;          /* has to be 4 bytes signed */
27 typedef unsigned int    ULONG;          /* has to be 4 bytes unsigned */
28 typedef int             BOOL;           /* doesn't matter.. 0=FALSE, <>0 true */
29
30 #else
31
32 typedef char            SBYTE;          /* has to be 1 byte signed */
33 typedef unsigned char   UBYTE;          /* has to be 1 byte unsigned */
34 //typedef short           SWORD;          /* has to be 2 bytes signed */
35 //typedef unsigned short  UWORD;          /* has to be 2 bytes unsigned */
36 typedef int             SWORD;          /* (used to) has to be 2 bytes signed */
37 typedef unsigned int    UWORD;          /* (used to) has to be 2 bytes unsigned */
38 typedef long            SLONG;          /* has to be 4 bytes signed */
39 typedef unsigned long   ULONG;          /* has to be 4 bytes unsigned */
40 typedef int             BOOL;           /* doesn't matter.. 0=FALSE, <>0 true */
41
42 #endif
43
44
45 #ifdef __OS2__
46 #define INCL_DOS
47 #define INCL_MCIOS2
48 #define INCL_MMIOOS2
49 #include <os2.h>
50 #include <os2me.h>
51 #include <mmio.h>
52 #endif
53
54
55 #ifdef __WATCOMC__
56 #define inportb(x) inp(x)
57 #define outportb(x,y) outp(x,y)
58 #define inport(x) inpw(x)
59 #define outport(x,y) outpw(x,y)
60 #define disable() _disable()
61 #define enable() _enable()
62 #endif
63
64
65 #ifdef __DJGPP__
66 #include <dpmi.h>
67 #include <go32.h>
68 #include <pc.h>
69 #define inp inportw
70 #define outport outportw
71 #define inport inportw
72 #define interrupt 
73 #endif
74
75 #endif