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 ----------------------------------------------------------------------------
22 - Changed from Alexander Dong (ado) for OS/2
23 - Changed 980329 by Pavel Roskin for both OS/2 and NT
25 ----------------------------------------------------------------------------
31 ****************************************************************************/
42 #define HAS_ACS_AS_PCCHARS
43 #define NEEDS_CR_LF_TRANSLATION
76 #define USE_INTERNAL_EDIT
84 #if defined (__MINGW32__) || defined (_MSC_VER)
85 #define HAVE_SYS_UTIME_H
102 typedef unsigned int umode_t
;
106 #define S_IRGRP 0000040
107 #define S_IWGRP 0000020
108 #define S_IXGRP 0000010
109 #define S_IROTH 0000004
110 #define S_IWOTH 0000002
111 #define S_IXOTH 0000001
113 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
116 typedef unsigned int nlink_t
;
121 #endif /* __MINGW32__ */
128 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
129 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
131 #define S_IRWXU 0000700
132 #define S_IRUSR 0000400
133 #define S_IWUSR 0000200
134 #define S_IXUSR 0000100
136 #define S_IRWXG 0000070
137 #define S_IRGRP 0000040
138 #define S_IWGRP 0000020
139 #define S_IXGRP 0000010
140 #define S_IRWXO 0000007
141 #define S_IROTH 0000004
142 #define S_IWOTH 0000002
143 #define S_IXOTH 0000001
145 /* FIXME: is this definition correct? */
148 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
150 #define pclose _pclose
153 typedef unsigned int nlink_t
;
158 #endif /* _MSC_VER */
165 #define S_IRWXG 0000070
166 #define S_IRGRP 0000040
167 #define S_IWGRP 0000020
168 #define S_IXGRP 0000010
169 #define S_IRWXO 0000007
170 #define S_IROTH 0000004
171 #define S_IWOTH 0000002
172 #define S_IXOTH 0000001
174 /* FIXME: is this definition correct? */
177 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
179 #define pclose _pclose
184 #endif /* __BORLANDC__ */
191 #define S_ISDIR(m) (((m) & S_IFDIR) != 0)
192 #define S_ISREG(m) (((m) & S_IFREG) != 0)
194 #define S_IRWXU 0000700
195 #define S_IRUSR 0000400
196 #define S_IWUSR 0000200
197 #define S_IXUSR 0000100
199 #define S_IRWXG 0000070
200 #define S_IRGRP 0000040
201 #define S_IWGRP 0000020
202 #define S_IXGRP 0000010
203 #define S_IRWXO 0000007
204 #define S_IROTH 0000004
205 #define S_IWOTH 0000002
206 #define S_IXOTH 0000001
208 #define ENOTDIR ENOENT
210 /* FIXME: is this definition correct? */
213 #pragma map( chdir , "_chdir" )
214 #pragma map( getcwd, "_getcwd" )
215 #pragma map( mkdir , "_mkdir" )
216 #pragma map( rmdir , "_rmdir" )
218 #define popen DosCreatePipe
219 #define pclose DosClose
220 #define sleep DosSleep
222 typedef unsigned int nlink_t
;
228 #endif /* __IBMC__ */
230 #endif /* __CONFIG_H */