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., 675 Mass Ave, Cambridge, MA 02139, USA.
19 ----------------------------------------------------------------------------
23 ----------------------------------------------------------------------------
29 ****************************************************************************/
34 # include <../VERSION>
36 # include <../VERSION.>
80 #if !defined(HAVE_SLANG) && !defined (USE_NCURSES)
85 #define RENAMED_NCURSES
88 typedef unsigned int umode_t
;
94 #pragma include_alias(<utime.h>, <sys/utime.h>)
99 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
100 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
101 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
103 #define S_ISFIFO(m) 0
106 #define S_IRWXU 0000700
107 #define S_IRUSR 0000400
108 #define S_IWUSR 0000200
109 #define S_IXUSR 0000100
111 #define S_IRWXG 0000070
112 #define S_IRGRP 0000040
113 #define S_IWGRP 0000020
114 #define S_IXGRP 0000010
115 #define S_IRWXO 0000007
116 #define S_IROTH 0000004
117 #define S_IWOTH 0000002
118 #define S_IXOTH 0000001
120 /* FIXME: is this definition correct? */
123 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
125 #define pclose _pclose
128 typedef unsigned int nlink_t
;
133 #endif /* _MSC_VER */
140 #define S_IRWXG 0000070
141 #define S_IRGRP 0000040
142 #define S_IWGRP 0000020
143 #define S_IXGRP 0000010
144 #define S_IRWXO 0000007
145 #define S_IROTH 0000004
146 #define S_IWOTH 0000002
147 #define S_IXOTH 0000001
149 /* FIXME: is this definition correct? */
152 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
154 #define pclose _pclose
158 #endif /* __BORLANDC__ */
160 #endif /* __CONFIG_H */