source: sbliveos2/trunk/include/ossdefos2.h@ 174

Last change on this file since 174 was 142, checked in by ktk, 25 years ago

Import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
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
36extern "C" {
37#endif
38void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */
39void _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
53typedef unsigned long ULONG;
54typedef unsigned long *PULONG;
55typedef unsigned short USHORT;
56typedef unsigned short *PUSHORT;
57typedef signed long LONG;
58typedef signed short SHORT;
59typedef signed short *PSHORT;
60typedef unsigned long BOOL;
61typedef ULONG FARPTR16;
62typedef char NEAR *LINEAR;
63typedef unsigned long APIRET;
64typedef void VOID;
65typedef void *PVOID;
66typedef signed int INT;
67typedef unsigned char UCHAR;
68typedef signed char CHAR;
69typedef CHAR *PCHAR;
70typedef __int64 QWORD;
71typedef ULONG HFILE;
72
73#define APIENTRY _System
74
75#endif
76
77#endif //TARGET_OS216
78
79#endif
Note: See TracBrowser for help on using the repository browser.