1 | /* $Id: ossdefos2.h 142 2000-04-23 14:55:46Z ktk $ */
|
---|
2 |
|
---|
3 | //******************************************************************************
|
---|
4 | // Header for type functions
|
---|
5 | //
|
---|
6 | // Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
7 | //
|
---|
8 | // This program is free software; you can redistribute it and/or
|
---|
9 | // modify it under the terms of the GNU General Public License as
|
---|
10 | // published by the Free Software Foundation; either version 2 of
|
---|
11 | // the License, or (at your option) any later version.
|
---|
12 | //
|
---|
13 | // This program is distributed in the hope that it will be useful,
|
---|
14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | // GNU General Public License for more details.
|
---|
17 | //
|
---|
18 | // You should have received a copy of the GNU General Public
|
---|
19 | // License along with this program; if not, write to the Free
|
---|
20 | // Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
21 | // USA.
|
---|
22 | //
|
---|
23 | //******************************************************************************
|
---|
24 | #ifndef __OSSDEFOS2_H__
|
---|
25 | #define __OSSDEFOS2_H__
|
---|
26 |
|
---|
27 | #define FAR48 __far
|
---|
28 | #ifndef FAR
|
---|
29 | #define FAR __far
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | #ifndef TARGET_OS216
|
---|
33 |
|
---|
34 | #ifdef DEBUG
|
---|
35 | #ifdef __cplusplus
|
---|
36 | extern "C" {
|
---|
37 | #endif
|
---|
38 | void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */
|
---|
39 | void _cdecl DPD(int level, char *x, ...) ; /* not debugging: nothing */
|
---|
40 | #ifdef __cplusplus
|
---|
41 | }
|
---|
42 | #endif
|
---|
43 | #define dprintf(a) DPE a
|
---|
44 | #define DebugInt3() _asm int 3;
|
---|
45 | #else
|
---|
46 | #define dprintf(a)
|
---|
47 | #define DebugInt3()
|
---|
48 | #endif
|
---|
49 |
|
---|
50 | #ifdef LINUX
|
---|
51 | #define NEAR __near
|
---|
52 |
|
---|
53 | typedef unsigned long ULONG;
|
---|
54 | typedef unsigned long *PULONG;
|
---|
55 | typedef unsigned short USHORT;
|
---|
56 | typedef unsigned short *PUSHORT;
|
---|
57 | typedef signed long LONG;
|
---|
58 | typedef signed short SHORT;
|
---|
59 | typedef signed short *PSHORT;
|
---|
60 | typedef unsigned long BOOL;
|
---|
61 | typedef ULONG FARPTR16;
|
---|
62 | typedef char NEAR *LINEAR;
|
---|
63 | typedef unsigned long APIRET;
|
---|
64 | typedef void VOID;
|
---|
65 | typedef void *PVOID;
|
---|
66 | typedef signed int INT;
|
---|
67 | typedef unsigned char UCHAR;
|
---|
68 | typedef signed char CHAR;
|
---|
69 | typedef CHAR *PCHAR;
|
---|
70 | typedef __int64 QWORD;
|
---|
71 | typedef ULONG HFILE;
|
---|
72 |
|
---|
73 | #define APIENTRY _System
|
---|
74 |
|
---|
75 | #endif
|
---|
76 |
|
---|
77 | #endif //TARGET_OS216
|
---|
78 |
|
---|
79 | #endif
|
---|