small typo
[midnight-commander.git] / pc / config.h
blobdbd2893bd7b504c0fd1f8aada530319b8899d483
1 /****************************************************************************
2 CONFIG.H - Midnight Commander Configuration for Win32
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 NATIVE_WIN32
37 #define NEEDS_IO_H
38 #define NEEDS_DRIVE_H
39 #define NEEDS_FCNTL_H
41 #define USE_O_TEXT
42 #define HAS_ACS_AS_PCCHARS
43 #define NEEDS_CR_LF_TRANSLATION
45 #ifdef MC_NT
46 # ifndef WIN32
47 # define WIN32
48 # endif
49 # ifndef __WIN32__
50 # define __WIN32__
51 # endif
52 # ifndef MSWINDOWS
53 # define MSWINDOWS
54 # endif
55 # ifndef NATIVE_WIN32
56 # define NATIVE_WIN32
57 # endif
58 #endif /* MC_NT */
60 #include "VERSION"
62 #ifndef pc_system
63 # define pc_system
64 #endif
66 #ifndef HAVE_SLANG
67 # define HAVE_SLANG
68 #endif
70 #ifndef _CONSOLE
71 # define _CONSOLE
72 #endif
74 #define FLOAT_TYPE
75 #define MIDNIGHT
76 #define USE_INTERNAL_EDIT
78 #define STDC_HEADERS
79 #define HAVE_STDLIB_H
80 #define HAVE_STRING_H
82 #define HAVE_LIMITS_H
84 #if defined (__MINGW32__) || defined (_MSC_VER)
85 #define HAVE_SYS_UTIME_H
86 #else
87 #define HAVE_UTIME_H
88 #endif
90 #define HAVE_MEMSET
91 #define HAVE_MEMCHR
92 #define HAVE_MEMCPY
93 #define HAVE_MEMCMP
94 #define HAVE_MEMMOVE
95 #define HAVE_STRDUP
96 #define HAVE_STRERROR
97 #define HAVE_TRUNCATE
99 #define REGEX_MALLOC
100 #define NO_INFOMOUNT
102 typedef unsigned int umode_t;
104 #ifdef __MINGW32__
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 */)
115 typedef int mode_t;
116 typedef unsigned int nlink_t;
117 typedef int gid_t;
118 typedef int uid_t;
119 typedef int pid_t;
121 #endif /* __MINGW32__ */
123 #ifdef _MSC_VER
125 #define INLINE
126 #define inline
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? */
146 #define R_OK 4
148 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
149 #define popen _popen
150 #define pclose _pclose
152 typedef int mode_t;
153 typedef unsigned int nlink_t;
154 typedef int gid_t;
155 typedef int uid_t;
156 typedef int pid_t;
158 #endif /* _MSC_VER */
160 #ifdef __BORLANDC__
162 #define INLINE
163 #define inline
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? */
175 #define R_OK 4
177 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
178 #define popen _popen
179 #define pclose _pclose
180 #define sleep _sleep
182 typedef int pid_t;
184 #endif /* __BORLANDC__ */
186 #ifdef __IBMC__
188 #define INLINE
189 #define inline
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? */
211 #define R_OK 4
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;
223 typedef int mode_t;
224 typedef int gid_t;
225 typedef int uid_t;
226 typedef int pid_t;
228 #endif /* __IBMC__ */
230 #endif /* __CONFIG_H */