skyrope-mit-merge-hell-20040226
[openafs.git] / src / WINNT / kfw / inc / krb4 / conf-pc.h
1 /*
2  * Copyright 1988 by the Massachusetts Institute of Technology.
3  *
4  * For copying and distribution information, please see the file
5  * <mit-copyright.h>.
6  *
7  * Machine-type definitions: IBM PC 8086
8  */
9
10 #if defined(_WIN32) && !defined(WIN32)
11 #define WIN32
12 #endif
13
14 #if ( defined(WIN16) || defined(WIN32) || defined(_WINDOWS)) && !defined(WINDOWS)
15 #define WINDOWS
16 #endif
17
18 #if defined(__OS2__) && !defined(OS2)
19 #define OS2
20 #endif
21
22 #ifdef WIN16
23 #define BITS16
24 #else
25 #ifdef MSDOS
26 #define BITS16
27 #else
28 #define BITS32
29 #endif
30 #endif
31 #define LSBFIRST
32
33 #define index(s,c) strchr(s,c)          /* PC version of index */
34 #define rindex(s,c) strrchr(s,c)
35 #if !defined(OS2) && !defined(LWP) /* utils.h under OS/2 */
36 #define bcmp(s1,s2,n) memcmp((s1),(s2),(n))
37 #define bcopy(a,b,c) memcpy( (b), (a), (c) )
38 #define bzero(a,b) memset( (a), 0, (b) )
39 #endif
40
41 typedef unsigned char u_char;
42 typedef unsigned long u_long;
43 typedef unsigned short u_short;
44 typedef unsigned int u_int;
45 #define NO_UIDGID_T
46
47 #if !defined(WINDOWS) && !defined(DWORD)
48 typedef long DWORD;
49 #endif
50
51 #if defined(PC)&&!defined(WINDOWS)
52 #ifndef LPSTR
53 typedef char *LPSTR;
54 typedef char *LPBYTE;
55 typedef char *CHARPTR;
56 typedef char *LPINT;
57 typedef unsigned int WORD;
58 #endif
59 #define LONG long
60 #define FAR
61 #define PASCAL
62 #define EXPORT
63 #endif
64
65 #ifdef OS2
66 #include <utils.h>
67 #define lstrcpy strcpy
68 #define lstrlen strlen
69 #define lstrcmp strcmp
70 #define lstrcpyn strncpy
71 #endif
72
73 #ifdef WIN32
74 #define _export 
75 #endif
76
77 #if defined(BITS32)
78 #define far
79 #define near
80 #endif
81
82 #ifdef WINDOWS
83 #include <windows.h>
84 #endif
85
86 #ifdef WIN32
87 #include <windowsx.h>
88 #endif
89
90 #ifdef WIN16
91 #pragma message ( "WIN16 in " __FILE__ )
92 #include <time.h>
93 #include <process.h>
94 #ifndef KRB_INT32
95 #define KRB_INT32 long
96 #endif
97 #ifndef KRB_UINT32
98 #define KRB_UINT32 unsigned KRB_INT32
99 #endif
100 #endif
101
102
103 #define RANDOM_KRB_INT32_1 ((KRB_INT32) time(NULL))
104 #define RANDOM_KRB_INT32_2 ((KRB_INT32) getpid())
105 #define TIME_GMT_UNIXSEC unix_time_gmt_unixsec((unsigned KRB_INT32 *)0);
106 #ifndef MAXPATHLEN
107 #define MAXPATHLEN _MAX_PATH
108 #endif