OSDN Git Service

67294ea2cf5f27eae4e48d0e29a8bd85323de3f1
[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 <wctype.h>
23 #include <errno.h>
24 #include <stddef.h>
25
26
27 #if defined(NeXT)
28 # include <libc.h>
29 #else
30 # include <stdlib.h>
31 #endif /* NeXT */
32
33
34 #ifdef SET_UID
35
36 # include <sys/types.h>
37
38 # if defined(Pyramid) || defined(NeXT) || defined(SUNOS) || \
39      defined(NCR3K) || defined(SUNOS) || defined(ibm032) || \
40      defined(__osf__) || defined(ISC) || defined(SGI) || \
41      defined(linux)
42 #  include <sys/time.h>
43 # endif
44
45 # if !defined(SGI) && !defined(ULTRIX)
46 #  include <sys/timeb.h>
47 # endif
48
49 #endif /* SET_UID */
50
51
52 #include <time.h>
53
54
55 #if defined(MACINTOSH)
56 # if defined(MAC_MPW)
57 #  ifdef __STDC__
58 #   undef __STDC__
59 #  endif
60 # else
61 #  include <unix.h>
62 # endif
63 #endif
64
65
66 #if defined(WINDOWS) || defined(MSDOS) || defined(USE_EMX)
67 # include <io.h>
68 #endif
69
70 #if !defined(MACINTOSH) && !defined(AMIGA) && \
71     !defined(ACORN) && !defined(VM)
72 # if defined(__TURBOC__) || defined(__WATCOMC__)
73 #  include <mem.h>
74 # else
75 #  include <memory.h>
76 # endif
77 #endif
78
79
80 #if !defined(NeXT) && !defined(__MWERKS__) && !defined(ACORN)
81 # include <fcntl.h>
82 #endif
83
84
85 #ifdef SET_UID
86
87 # ifndef USG
88 #  include <sys/param.h>
89 #  include <sys/file.h>
90 # endif /* !USG */
91
92 # ifdef linux
93 #  include <sys/file.h>
94 # endif
95
96 # include <pwd.h>
97
98 # include <unistd.h>
99
100 # include <sys/stat.h>
101
102 # ifdef SOLARIS
103 #  include <netdb.h>
104 # endif
105
106 #endif /* SET_UID */
107
108 #ifdef __DJGPP__
109 #include <unistd.h>
110 #endif /* __DJGPP__ */
111
112 #include <string.h>
113
114 #include <stdarg.h>
115
116 #endif /* INCLUDED_H_SYSTEM_H */