OSDN Git Service

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