* POTFILES.in: add gnome/gcustom-layout.c file
[midnight-commander.git] / os2 / config.h
blob324ca85944149ee2ceeb817d407f126508d57d66
1 /****************************************************************************
2 CONFIG.H - Midnight Commander Configuration for 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., 675 Mass Ave, Cambridge, MA 02139, USA.
19 ----------------------------------------------------------------------------
20 Changes:
21 - Created 951204/jfg
22 - Changed from Alexander Dong (ado) for OS/2
24 ----------------------------------------------------------------------------
25 Contents:
26 - Headers flags
27 - Library flags
28 - Typedefs
29 - etc.
30 ****************************************************************************/
31 #ifndef __CONFIG_H
32 #define __CONFIG_H
34 #ifndef __BORLANDC__
35 # include <../VERSION>
36 #else
37 # include <../VERSION.>
38 #endif
40 #ifndef OS2
41 # define OS2
42 #endif
44 #ifndef __os2__
45 # define __os2__
46 #endif
48 #ifndef pc_system
49 # define pc_system
50 #endif
52 #define OS2_NT
53 #define FLOAT_TYPE
54 #define MIDNIGHT
56 #define STDC_HEADERS
57 #define HAVE_STDLIB_H
58 #define HAVE_STRING_H
59 #define HAVE_DIRENT_H
60 #define HAVE_LIMITS_H
61 #define HAVE_FCNTL_H
63 #define HAVE_MEMSET
64 #define HAVE_MEMCHR
65 #define HAVE_MEMCPY
66 #define HAVE_MEMCMP
67 #define HAVE_MEMMOVE
68 #define HAVE_STRDUP
69 #define HAVE_STRERROR
70 #define HAVE_TRUNCATE
72 #define REGEX_MALLOC
74 #define NO_INFOMOUNT
76 #if !defined(HAVE_SLANG) && !defined (USE_NCURSES)
77 #define HAVE_SLANG
78 #endif
80 #ifdef USE_NCURSES
81 #define RENAMED_NCURSES
82 #endif
84 typedef unsigned int umode_t;
86 #define S_IFLNK 0
87 #define S_ISLNK(x) 0
89 #ifdef __EMX__
91 #define S_IFBLK 0
92 #define S_ISBLK(x) 0
94 #endif /* __EMX__ */
96 #ifdef __BORLANDC__
98 #define INLINE
99 #define inline
101 #define S_IRWXG 0000070
102 #define S_IRGRP 0000040
103 #define S_IWGRP 0000020
104 #define S_IXGRP 0000010
105 #define S_IRWXO 0000007
106 #define S_IROTH 0000004
107 #define S_IWOTH 0000002
108 #define S_IXOTH 0000001
110 /* FIXME: is this definition correct? */
111 #define R_OK 4
113 #define popen _popen
114 #define pclose _pclose
115 #define sleep _sleep
117 typedef int pid_t;
119 #endif /* __BORLANDC__ */
121 #endif /* __CONFIG_H */