OSDN Git Service

Slaying and Elemental Brand damage calculation refer to sturct table
[hengband/hengband.git] / src / h-system.h
1 /* File: h-system.h */
2
3 #ifndef INCLUDED_H_SYSTEM_H
4 #define INCLUDED_H_SYSTEM_H
5
6 /*
7  * Include the basic "system" files.
8  *
9  * Make sure all "system" constants/macros are defined.
10  * Make sure all "system" functions have "extern" declarations.
11  *
12  * This file is a big hack to make other files less of a hack.
13  * This file has been rebuilt -- it may need a little more work.
14  *
15  * It is (very) unlikely that VMS will work without help, primarily
16  * because VMS does not use the "ASCII" character set.
17  */
18
19
20 #include <stdio.h>
21 #include <ctype.h>
22 #include <errno.h>
23 #include <stddef.h>
24
25
26 #if defined(NeXT)
27 # include <libc.h>
28 #else
29 # include <stdlib.h>
30 #endif /* NeXT */
31
32
33 #ifdef SET_UID
34
35 # include <sys/types.h>
36
37 # if defined(Pyramid) || defined(NeXT) || defined(SUNOS) || \
38      defined(NCR3K) || defined(SUNOS) || defined(ibm032) || \
39      defined(__osf__) || defined(ISC) || defined(SGI) || \
40      defined(linux)
41 #  include <sys/time.h>
42 # endif
43
44 # if !defined(SGI) && !defined(ULTRIX)
45 #  include <sys/timeb.h>
46 # endif
47
48 #endif /* SET_UID */
49
50
51 #include <time.h>
52
53
54 #if defined(MACINTOSH)
55 # if defined(MAC_MPW)
56 #  ifdef __STDC__
57 #   undef __STDC__
58 #  endif
59 # else
60 #  include <unix.h>
61 # endif
62 #endif
63
64
65 #if defined(WINDOWS) || defined(MSDOS) || defined(USE_EMX)
66 # include <io.h>
67 #endif
68
69 #if !defined(MACINTOSH) && !defined(AMIGA) && \
70     !defined(ACORN) && !defined(VM)
71 # if defined(__TURBOC__) || defined(__WATCOMC__)
72 #  include <mem.h>
73 # else
74 #  include <memory.h>
75 # endif
76 #endif
77
78
79 #if !defined(NeXT) && !defined(__MWERKS__) && !defined(ACORN)
80 # include <fcntl.h>
81 #endif
82
83
84 #ifdef SET_UID
85
86 # ifndef USG
87 #  include <sys/param.h>
88 #  include <sys/file.h>
89 # endif /* !USG */
90
91 # ifdef linux
92 #  include <sys/file.h>
93 # endif
94
95 # include <pwd.h>
96
97 # include <unistd.h>
98
99 # include <sys/stat.h>
100
101 # ifdef SOLARIS
102 #  include <netdb.h>
103 # endif
104
105 #endif /* SET_UID */
106
107 #ifdef __DJGPP__
108 #include <unistd.h>
109 #endif /* __DJGPP__ */
110
111 #include <string.h>
112
113 #include <stdarg.h>
114
115 #endif /* INCLUDED_H_SYSTEM_H */