]> git.sur5r.net Git - openldap/blob - libraries/msdos/winsock/include/krb/mit/conf-pc.h
Initial revision
[openldap] / libraries / msdos / winsock / include / krb / mit / conf-pc.h
1 /*
2  * $Source: F:/DOSDEV/NEWKRB/INCLUDE/RCS/conf-pc.h $
3  * $Author: pbh $
4  * $Header: F:/DOSDEV/NEWKRB/INCLUDE/RCS/conf-pc.h 1.2 1994/08/16 18:43:42 pbh Exp $
5  *
6  * Copyright 1988 by the Massachusetts Institute of Technology.
7  *
8  * For copying and distribution information, please see the file
9  * <mit-copyright.h>.
10  *
11  * Machine-type definitions: IBM PC 8086
12  */
13
14 #include <mit_copy.h>
15
16 #ifndef IBMPC
17         #define IBMPC
18 #endif
19
20 #if defined(__WINDOWS__) && !defined(WINDOWS)
21 #define WINDOWS
22 #endif
23
24 #if defined(__OS2__) && !defined(OS2)
25 #define OS2
26 #endif
27
28 #ifndef OS2
29 #define BITS16
30 #define CROSSMSDOS
31 /* OS/2 is 32 bit!!!! */
32 #else
33 #define BITS32
34 #endif
35 #define LSBFIRST
36
37 #define index(s,c) strchr(s,c)          /* PC version of index */
38 #define rindex(s,c) strrchr(s,c)
39
40 typedef unsigned char u_char;
41 typedef unsigned long u_long;
42 typedef unsigned short u_short;
43 typedef short uid_t;
44
45 #if !defined(WINDOWS) && !defined(DWORD)
46 typedef long DWORD;
47 #endif
48
49 #ifdef OS2
50 typedef char *LPSTR;
51 typedef char *LPBYTE;
52 typedef char *CHARPTR;
53 typedef char *LPINT;
54 typedef unsigned int WORD;
55
56 #define far
57 #define near
58 #define FAR
59 #define PASCAL
60 #include <utils.h>
61 #define lstrcpy strcpy
62 #define lstrlen strlen
63 #define lstrcmp strcmp
64 #define lstrcpyn strncpy
65 #endif
66
67 #if defined(OS2) || defined(WINDOWS)
68 #define creat _creat
69 #define read _read
70 #define write _write
71 #define open _open
72 #define close _close
73 #define stat(x,y) _stat(x,y)
74 #define putch _putch
75 #define getch _getch
76 #endif
77
78 #ifdef WINDOWS
79 #include <windows.h>
80 #endif