OSDN Git Service

Remove dependence on sys/timeb.h. Nothing uses ftime() or struct timeb, and sys...
[hengbandforosx/hengbandosx.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 #endif /* SET_UID */
51
52
53 #include <time.h>
54
55
56 #if defined(MACINTOSH)
57 # if defined(MAC_MPW)
58 #  ifdef __STDC__
59 #   undef __STDC__
60 #  endif
61 # else
62 #  include <unix.h>
63 # endif
64 #endif
65
66
67 #if defined(WINDOWS)
68 # include <io.h>
69 #endif
70
71 #if !defined(MACINTOSH) && \
72     !defined(ACORN) && !defined(VM)
73 # if defined(__TURBOC__) || defined(__WATCOMC__)
74 #  include <mem.h>
75 # else
76 #  include <memory.h>
77 # endif
78 #endif
79
80
81 #if !defined(NeXT) && !defined(__MWERKS__) && !defined(ACORN)
82 # include <fcntl.h>
83 #endif
84
85
86 #ifdef SET_UID
87
88 # ifndef USG
89 #  include <sys/param.h>
90 #  include <sys/file.h>
91 # endif /* !USG */
92
93 # ifdef linux
94 #  include <sys/file.h>
95 # endif
96
97 # include <pwd.h>
98
99 # include <unistd.h>
100
101 # include <sys/stat.h>
102
103 # ifdef SOLARIS
104 #  include <netdb.h>
105 # endif
106
107 #endif /* SET_UID */
108
109 #ifdef __DJGPP__
110 #include <unistd.h>
111 #endif /* __DJGPP__ */
112
113 #include <string.h>
114
115 #include <stdarg.h>
116
117 #endif /* INCLUDED_H_SYSTEM_H */