OSDN Git Service

v3.0.0 Alpha5 OSDN最終版
[hengband/hengband.git] / src / h-system.h
1 /*!
2  * @file h-system.h
3  * @brief 変愚蛮怒用システムヘッダーファイル /
4  * The most basic "include" file. This file simply includes other low level header files.
5  * @date 2014/08/16
6  * @author
7  * 不明(変愚蛮怒スタッフ?)
8  * @details
9  * Include the basic "system" files.
10  * Make sure all "system" constants/macros are defined.
11  * Make sure all "system" functions have "extern" declarations.
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 #ifndef INCLUDED_H_SYSTEM_H
21 #define INCLUDED_H_SYSTEM_H
22
23
24
25 #include <stdio.h>
26 #include <ctype.h>
27 #include <wctype.h>
28 #include <errno.h>
29 #include <stddef.h>
30
31
32 #if defined(NeXT)
33 # include <libc.h>
34 #else
35 # include <stdlib.h>
36 #endif /* NeXT */
37
38
39 #ifdef SET_UID
40
41 # include <sys/types.h>
42
43 # if defined(Pyramid) || defined(NeXT) || \
44      defined(NCR3K) || defined(ibm032) || \
45      defined(__osf__) || defined(ISC) || defined(SGI) || \
46      defined(linux)
47 #  include <sys/time.h>
48 # endif
49
50 # if !defined(SGI) && !defined(ULTRIX)
51 #  include <sys/timeb.h>
52 # endif
53
54 #endif /* SET_UID */
55
56
57 #include <time.h>
58
59
60 #if defined(MACINTOSH)
61 # if defined(MAC_MPW)
62 #  ifdef __STDC__
63 #   undef __STDC__
64 #  endif
65 # else
66 #  include <unix.h>
67 # endif
68 #endif
69
70
71 #if defined(WINDOWS)
72 # include <io.h>
73 #endif
74
75 #if !defined(MACINTOSH) && \
76     !defined(ACORN) && !defined(VM)
77 # if defined(__TURBOC__) || defined(__WATCOMC__)
78 #  include <mem.h>
79 # else
80 #  include <memory.h>
81 # endif
82 #endif
83
84
85 #if !defined(NeXT) && !defined(__MWERKS__) && !defined(ACORN)
86 # include <fcntl.h>
87 #endif
88
89
90 #ifdef SET_UID
91
92 # ifndef USG
93 #  include <sys/param.h>
94 #  include <sys/file.h>
95 # endif /* !USG */
96
97 # ifdef linux
98 #  include <sys/file.h>
99 # endif
100
101 # include <pwd.h>
102
103 # include <unistd.h>
104
105 # include <sys/stat.h>
106
107 # ifdef SOLARIS
108 #  include <netdb.h>
109 # endif
110
111 #endif /* SET_UID */
112
113 #ifdef __DJGPP__
114 #include <unistd.h>
115 #endif /* __DJGPP__ */
116
117 #include <string.h>
118
119 #include <stdarg.h>
120
121 #endif /* INCLUDED_H_SYSTEM_H */