OSDN Git Service

cc0261e73bc32faa554d9a9ae349f4c8c7474bdd
[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(WINDOWS)
61 # include <io.h>
62 #endif
63
64 #if !defined(VM)
65 # if defined(__TURBOC__) || defined(__WATCOMC__)
66 #  include <mem.h>
67 # else
68 #  include <memory.h>
69 # endif
70 #endif
71
72
73 #if !defined(NeXT) && !defined(__MWERKS__)
74 # include <fcntl.h>
75 #endif
76
77
78 #ifdef SET_UID
79
80 # ifndef USG
81 #  include <sys/param.h>
82 #  include <sys/file.h>
83 # endif /* !USG */
84
85 # ifdef linux
86 #  include <sys/file.h>
87 # endif
88
89 # include <pwd.h>
90
91 # include <unistd.h>
92
93 # include <sys/stat.h>
94
95 # ifdef SOLARIS
96 #  include <netdb.h>
97 # endif
98
99 #endif /* SET_UID */
100
101 #ifdef __DJGPP__
102 #include <unistd.h>
103 #endif /* __DJGPP__ */
104
105 #include <string.h>
106
107 #include <stdarg.h>
108
109 #endif /* INCLUDED_H_SYSTEM_H */