Defuzzied one entry
[midnight-commander.git] / pc / config.h
blobac4131dd164f64a0c5b4cfa762e5e1eee8417be9
1 /****************************************************************************
2 CONFIG.H - Midnight Commander Configuration for Win32 and OS/2
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 ----------------------------------------------------------------------------
20 Changes:
21 - Created 951204/jfg
22 - Changed from Alexander Dong (ado) for OS/2
23 - Changed 980329 by Pavel Roskin for both OS/2 and NT
25 ----------------------------------------------------------------------------
26 Contents:
27 - Headers flags
28 - Library flags
29 - Typedefs
30 - etc.
31 ****************************************************************************/
32 #ifndef __CONFIG_H
33 #define __CONFIG_H
35 #define OS2_NT
37 #define NEEDS_IO_H
38 #define NEEDS_DRIVE_H
39 #define NEEDS_FCNTL_H
40 #define HAS_NO_GRP_PWD_H
41 #define HAS_NO_TERMIOS_H
42 #define HAS_NO_SYS_PARAM_H
43 #define HAS_NO_SYS_IOCTL_H
45 #define USE_O_TEXT
46 #define HAS_ACS_AS_PCCHARS
47 #define NEEDS_CR_LF_TRANSLATION
49 #ifdef MC_NT
50 # ifndef WIN32
51 # define WIN32
52 # endif
53 # ifndef __WIN32__
54 # define __WIN32__
55 # endif
56 # ifndef MSWINDOWS
57 # define MSWINDOWS
58 # endif
59 # ifndef _OS_NT
60 # define _OS_NT
61 # endif
62 #endif /* MC_NT */
64 #ifdef MC_OS2
65 # ifndef OS2
66 # define OS2
67 # endif
68 # ifndef __os2__
69 # define __os2__
70 # define NEEDS_LOCAL_DIRENT_H
71 # endif
72 #endif /* MC_OS2 */
74 #include "..\VERSION"
76 #ifndef pc_system
77 # define pc_system
78 #endif
80 #ifndef HAVE_SLANG
81 # define HAVE_SLANG
82 #endif
84 #ifndef _CONSOLE
85 # define _CONSOLE
86 #endif
88 #define FLOAT_TYPE
89 #define MIDNIGHT
90 #define USE_INTERNAL_EDIT
92 #define STDC_HEADERS
93 #define HAVE_STDLIB_H
94 #define HAVE_STRING_H
95 #define HAVE_DIRENT_H
96 #define HAVE_LIMITS_H
97 #define HAVE_UTIME_H
99 #define HAVE_MEMSET
100 #define HAVE_MEMCHR
101 #define HAVE_MEMCPY
102 #define HAVE_MEMCMP
103 #define HAVE_MEMMOVE
104 #define HAVE_STRDUP
105 #define HAVE_STRERROR
106 #define HAVE_TRUNCATE
108 #define REGEX_MALLOC
109 #define NO_INFOMOUNT
111 typedef unsigned int umode_t;
112 #define S_IFLNK 0
113 #define S_ISLNK(x) 0
115 #ifdef __EMX__
117 #define S_IFBLK 0
118 #define S_ISBLK(x) 0
120 #endif /* __EMX__ */
122 #ifdef __MINGW32__
124 #define S_IRGRP 0000040
125 #define S_IWGRP 0000020
126 #define S_IXGRP 0000010
127 #define S_IROTH 0000004
128 #define S_IWOTH 0000002
129 #define S_IXOTH 0000001
131 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
133 typedef int mode_t;
134 typedef unsigned int nlink_t;
135 typedef int gid_t;
136 typedef int uid_t;
137 typedef int pid_t;
139 #endif /* __MINGW32__ */
141 #ifdef _MSC_VER
143 #pragma include_alias(<utime.h>, <sys/utime.h>)
145 #define INLINE
146 #define inline
148 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
149 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
150 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
152 #define S_ISFIFO(m) 0
153 #define S_ISBLK(x) 0
155 #define S_IRWXU 0000700
156 #define S_IRUSR 0000400
157 #define S_IWUSR 0000200
158 #define S_IXUSR 0000100
160 #define S_IRWXG 0000070
161 #define S_IRGRP 0000040
162 #define S_IWGRP 0000020
163 #define S_IXGRP 0000010
164 #define S_IRWXO 0000007
165 #define S_IROTH 0000004
166 #define S_IWOTH 0000002
167 #define S_IXOTH 0000001
169 /* FIXME: is this definition correct? */
170 #define R_OK 4
172 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
173 #define popen _popen
174 #define pclose _pclose
176 typedef int mode_t;
177 typedef unsigned int nlink_t;
178 typedef int gid_t;
179 typedef int uid_t;
180 typedef int pid_t;
182 #endif /* _MSC_VER */
184 #ifdef __BORLANDC__
186 #define INLINE
187 #define inline
189 #define S_IRWXG 0000070
190 #define S_IRGRP 0000040
191 #define S_IWGRP 0000020
192 #define S_IXGRP 0000010
193 #define S_IRWXO 0000007
194 #define S_IROTH 0000004
195 #define S_IWOTH 0000002
196 #define S_IXOTH 0000001
198 /* FIXME: is this definition correct? */
199 #define R_OK 4
201 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
202 #define popen _popen
203 #define pclose _pclose
204 #define sleep _sleep
206 typedef int pid_t;
208 #endif /* __BORLANDC__ */
210 #ifdef __IBMC__
212 #define INLINE
213 #define inline
215 #define S_ISFIFO(m) 0
216 #define S_ISBLK(x) 0
218 #define S_ISCHR(m) (((m) & S_IFCHR) != 0)
219 #define S_ISDIR(m) (((m) & S_IFDIR) != 0)
220 #define S_ISREG(m) (((m) & S_IFREG) != 0)
222 #define S_IRWXU 0000700
223 #define S_IRUSR 0000400
224 #define S_IWUSR 0000200
225 #define S_IXUSR 0000100
227 #define S_IRWXG 0000070
228 #define S_IRGRP 0000040
229 #define S_IWGRP 0000020
230 #define S_IXGRP 0000010
231 #define S_IRWXO 0000007
232 #define S_IROTH 0000004
233 #define S_IWOTH 0000002
234 #define S_IXOTH 0000001
236 #define ENOTDIR ENOENT
238 /* FIXME: is this definition correct? */
239 #define R_OK 4
241 #pragma map( chdir , "_chdir" )
242 #pragma map( getcwd, "_getcwd" )
243 #pragma map( mkdir , "_mkdir" )
244 #pragma map( rmdir , "_rmdir" )
246 #define popen DosCreatePipe
247 #define pclose DosClose
248 #define sleep DosSleep
250 typedef unsigned int nlink_t;
251 typedef int mode_t;
252 typedef int gid_t;
253 typedef int uid_t;
254 typedef int pid_t;
256 #endif /* __IBMC__ */
258 #endif /* __CONFIG_H */