Revision 8789,
1.5 KB
checked in by ghudson, 28 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r8788,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | /* |
---|
2 | * conf.h |
---|
3 | * |
---|
4 | * Copyright 1988 by the Massachusetts Institute of Technology. |
---|
5 | * |
---|
6 | * For copying and distribution information, please see the file |
---|
7 | * <mit-copyright.h>. |
---|
8 | * |
---|
9 | * Configuration info for operating system, hardware description, |
---|
10 | * language implementation, C library, etc. |
---|
11 | * |
---|
12 | * This file should be included in (almost) every file in the Kerberos |
---|
13 | * sources, and probably should *not* be needed outside of those |
---|
14 | * sources. (How do we deal with /usr/include/des.h and |
---|
15 | * /usr/include/krb.h?) |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef CONF_H |
---|
19 | #define CONF_H |
---|
20 | |
---|
21 | #include "mit-copyright.h" |
---|
22 | |
---|
23 | /* appl/bsd/ *.c wants to see this, on all platforms... */ |
---|
24 | #define KERBEROS 1 |
---|
25 | |
---|
26 | /* A few files want NDBM, though this is overridden by #undef in some |
---|
27 | platforms' OS configurations */ |
---|
28 | #define NDBM 1 |
---|
29 | |
---|
30 | #include "osconf.h" |
---|
31 | |
---|
32 | #ifdef SHORTNAMES |
---|
33 | #include "names.h" |
---|
34 | #endif |
---|
35 | |
---|
36 | /* |
---|
37 | * Language implementation-specific definitions |
---|
38 | */ |
---|
39 | |
---|
40 | /* special cases */ |
---|
41 | #ifdef __HIGHC__ |
---|
42 | /* broken implementation of ANSI C */ |
---|
43 | #undef __STDC__ |
---|
44 | #endif |
---|
45 | |
---|
46 | #ifndef __STDC__ |
---|
47 | #define const |
---|
48 | #define volatile |
---|
49 | #define signed |
---|
50 | #ifndef PROTOTYPE |
---|
51 | #define PROTOTYPE(p) () |
---|
52 | #endif |
---|
53 | #else |
---|
54 | #define PROTOTYPE(p) p |
---|
55 | #endif |
---|
56 | |
---|
57 | /* |
---|
58 | * A few checks to see that necessary definitions are included. |
---|
59 | */ |
---|
60 | |
---|
61 | /* byte order */ |
---|
62 | |
---|
63 | #ifndef MSBFIRST |
---|
64 | #ifndef LSBFIRST |
---|
65 | /* #error byte order not defined */ |
---|
66 | Error: byte order not defined. |
---|
67 | #endif |
---|
68 | #endif |
---|
69 | |
---|
70 | /* machine size */ |
---|
71 | #ifndef BITS16 |
---|
72 | #ifndef BITS32 |
---|
73 | Error: how big is this machine anyways? |
---|
74 | #endif |
---|
75 | #endif |
---|
76 | |
---|
77 | /* end of checks */ |
---|
78 | |
---|
79 | #endif /* CONF_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.