Added cs to the list of languages
[midnight-commander.git] / nt / config.h
blob742633e8def3f31616c69418ce7018ad124fb54e
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 ----------------------------------------------------------------------------
20 Changes:
21 - Created 951204/jfg
23 ----------------------------------------------------------------------------
24 Contents:
25 - Headers flags
26 - Library flags
27 - Typedefs
28 - etc.
29 ****************************************************************************/
30 #ifndef __CONFIG_H
31 #define __CONFIG_H
33 #ifndef __BORLANDC__
34 # include <../VERSION>
35 #else
36 # include <../VERSION.>
37 #endif
39 #ifndef WIN32
40 # define WIN32
41 #endif
43 #ifndef __WIN32__
44 # define __WIN32__
45 #endif
47 #ifndef MSWINDOWS
48 # define MSWINDOWS
49 #endif
51 #ifndef pc_system
52 # define pc_system
53 #endif
55 #define _OS_NT
56 #define OS2_NT
57 #define FLOAT_TYPE
58 #define MIDNIGHT
60 #define STDC_HEADERS
61 #define HAVE_STDLIB_H
62 #define HAVE_STRING_H
63 #define HAVE_DIRENT_H
64 #define HAVE_LIMITS_H
65 #define HAVE_FCNTL_H
67 #define HAVE_MEMSET
68 #define HAVE_MEMCHR
69 #define HAVE_MEMCPY
70 #define HAVE_MEMCMP
71 #define HAVE_MEMMOVE
72 #define HAVE_STRDUP
73 #define HAVE_STRERROR
74 #define HAVE_TRUNCATE
76 #define REGEX_MALLOC
78 #define NO_INFOMOUNT
80 #if !defined(HAVE_SLANG) && !defined (USE_NCURSES)
81 #define HAVE_SLANG
82 #endif
84 #ifdef USE_NCURSES
85 #define RENAMED_NCURSES
86 #endif
88 typedef unsigned int umode_t;
89 #define S_IFLNK 0
90 #define S_ISLNK(x) 0
92 #ifdef _MSC_VER
94 #pragma include_alias(<utime.h>, <sys/utime.h>)
96 #define INLINE
97 #define inline
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
104 #define S_ISBLK(x) 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? */
121 #define R_OK 4
123 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
124 #define popen _popen
125 #define pclose _pclose
127 typedef int mode_t;
128 typedef unsigned int nlink_t;
129 typedef int gid_t;
130 typedef int uid_t;
131 typedef int pid_t;
133 #endif /* _MSC_VER */
135 #ifdef __BORLANDC__
137 #define INLINE
138 #define inline
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? */
150 #define R_OK 4
152 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
153 #define popen _popen
154 #define pclose _pclose
156 typedef int pid_t;
158 #endif /* __BORLANDC__ */
160 #endif /* __CONFIG_H */