1 /*
2  * Copyright (C) 1999-2002 Mark Hessling <M.Hessling@qut.edu.au>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the Free
16  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 
19 /*
20  * For platforms that don't use autoconf, put these here...
21  */
22 
23 #if defined(DOS) && defined(__EMX__)
24 # define HAVE_ASSERT_H        1
25 # define HAVE_GETOPT_H        1
26 # define HAVE_CTYPE_H         1
27 # define HAVE_IO_H            1
28 # define HAVE_LIMITS_H        1
29 # define HAVE_MALLOC_H        1
30 # define HAVE_SETJMP_H        1
31 # define HAVE_SIGNAL_H        1
32 # define HAVE_STDARG_H        1
33 # define HAVE_STDLIB_H        1
34 # define HAVE_SYS_STAT_H      1
35 # define HAVE_SYS_TYPES_H     1
36 # define HAVE_STRING_H        1
37 # define HAVE_UNISTD_H        1
38 # define HAVE__FULLPATH       1
39 # define HAVE_GETOPT          1
40 # define HAVE_PUTENV          1
41 # define HAVE_GETTIMEOFDAY    1
42 # define HAVE_FTRUNCATE       1
43 # define HAVE_MEMCPY          1
44 # define HAVE_MEMMOVE         1
45 # define HAVE_STRERROR        1
46 # define HAVE_VSPRINTF        1
47 # define TIME_WITH_SYS_TIME   1
48 # define HAVE_FCNTL_H         1
49 # define SIZEOF_LONG          4
50 #endif
51 
52 #if (defined(OS2) || defined(__OS2__)) && defined(__EMX__)
53 # define HAVE_ASSERT_H        1
54 # define HAVE_GETOPT_H        1
55 # define HAVE_CTYPE_H         1
56 # define HAVE_FTRUNCATE       1
57 # define HAVE_GETOPT          1
58 # define HAVE_GETTIMEOFDAY    1
59 # define HAVE_IO_H            1
60 # define HAVE_LIMITS_H        1
61 # define HAVE_MALLOC_H        1
62 # define HAVE_MEMCPY          1
63 # define HAVE_MEMMOVE         1
64 # define HAVE_PUTENV          1
65 # define HAVE_SETJMP_H        1
66 # define HAVE_SIGNAL_H        1
67 # define HAVE_STDARG_H        1
68 # define HAVE_STDLIB_H        1
69 # define HAVE_STRERROR        1
70 # define HAVE_STRING_H        1
71 # define HAVE_SYS_STAT_H      1
72 # define HAVE_SYS_TYPES_H     1
73 # define HAVE_TIME_H          1
74 # define HAVE_UNISTD_H        1
75 # define HAVE_VSPRINTF        1
76 # define HAVE__FULLPATH       1
77 # define TIME_WITH_SYS_TIME   1
78 # define HAVE_FCNTL_H         1
79 # define SIZEOF_LONG          4
80 # define HAVE_STDINT_H        1
81 # define HAVE_INTTYPES_H      1
82 # define DYNAMIC_OS2          1
83 #endif
84 
85 #if (defined(OS2) || defined(__OS2__)) && defined(__IBMC__)
86 # define HAVE_ASSERT_H        1
87 # define HAVE_CTYPE_H         1
88 # define HAVE_FTRUNCATE       1
89 # define HAVE_GETTIMEOFDAY    1
90 # define HAVE_IO_H            1
91 # define HAVE_MEMCPY          1
92 # define HAVE_MEMMOVE         1
93 # define HAVE_PUTENV          1
94 # define HAVE_MEMORY_H        1
95 # define HAVE_STRING_H        1
96 # define HAVE_SETJMP_H        1
97 # define HAVE_ERRNO_H         1
98 # define HAVE_STDARG_H        1
99 # define HAVE_STDLIB_H        1
100 # define HAVE_STRERROR        1
101 # define HAVE_SYS_STAT_H      1
102 # define HAVE_VSPRINTF        1
103 # define HAVE__FULLPATH       1
104 # define TIME_WITH_SYS_TIME   1
105 # define SIZEOF_LONG          4
106 # define DYNAMIC_OS2          1
107 #endif
108 
109 #if (defined(OS2) || defined(__OS2__)) && defined(__WATCOMC__)
110 # define HAVE_ASSERT_H        1
111 # define HAVE_CTYPE_H         1
112 # define HAVE_ERRNO_H         1
113 # define HAVE_IO_H            1
114 # define HAVE_MALLOC_H        1
115 # define HAVE_MEMCPY          1
116 # define HAVE_MEMMOVE         1
117 # define HAVE_PUTENV          1
118 # define HAVE_SETJMP_H        1
119 # define HAVE_STDARG_H        1
120 # define HAVE_STRERROR        1
121 # define HAVE_STRING_H        1
122 # define HAVE_PROCESS_H       1
123 # define HAVE_SYS_STAT_H      1
124 # define HAVE_UNISTD_H        1
125 # define HAVE_VSPRINTF        1
126 # define HAVE__FULLPATH       1
127 # define HAVE_FCNTL_H         1
128 # define SIZEOF_LONG          4
129 # define DYNAMIC_OS2          1
130 #endif
131 
132 #if defined(WIN32) && defined(__WATCOMC__)
133 # define HAVE_ASSERT_H        1
134 # define HAVE_CTYPE_H         1
135 # define HAVE_FTIME           1
136 # define HAVE_IO_H            1
137 # define HAVE_MALLOC_H        1
138 # define HAVE_MEMCPY          1
139 # define HAVE_MEMMOVE         1
140 # define HAVE_SETENV          1
141 # define HAVE_SETJMP_H        1
142 # define HAVE_STDARG_H        1
143 # define HAVE_STRERROR        1
144 # define HAVE_SYS_STAT_H      1
145 # define HAVE_UNISTD_H        1
146 # define HAVE_VSPRINTF        1
147 # define HAVE__FULLPATH       1
148 # define HAVE__SPLITPATH2     1
149 /* # define HAVE_FTRUNCATE      1*/
150 # define HAVE_FCNTL_H         1
151 # define HAVE_STRTOF          1
152 # define SIZEOF_LONG          4
153 # define DYNAMIC_WIN32        1
154 # define HAVE__STATI64        1
155 #endif
156 
157 #if defined(WIN32) && defined(_MSC_VER)
158 # define HAVE_ASSERT_H        1
159 # define HAVE_CTYPE_H         1
160 # define HAVE_ERRNO_H         1
161 # define HAVE_FTIME           1
162 # define HAVE_FTRUNCATE       1
163 # define HAVE_IO_H            1
164 # define HAVE_LIMITS_H        1
165 # define HAVE_MALLOC_H        1
166 # define HAVE_MEMCPY          1
167 # define HAVE_MEMMOVE         1
168 # define HAVE_SETJMP_H        1
169 # define HAVE_SIGNAL_H        1
170 # define HAVE_STDARG_H        1
171 # define HAVE_STDLIB_H        1
172 # define HAVE_STRERROR        1
173 # define HAVE_STRING_H        1
174 # define HAVE_SYS_STAT_H      1
175 # define HAVE_VFPRINTF        1
176 # define HAVE__FULLPATH       1
177 # define HAVE__SPLITPATH      1
178 # define HAVE_FCNTL_H         1
179 # define SIZEOF_LONG          4
180 # define HAVE_STDINT_H        1
181 # define HAVE_INTTYPES_H      1
182 # define DYNAMIC_WIN32        1
183 # define HAVE__STATI64        1
184 #endif
185 
186 #if defined(WIN32) && defined(__CYGWIN32__)
187 # define HAVE_ASSERT_H        1
188 # define HAVE_CTYPE_H         1
189 # define HAVE_FTRUNCATE       1
190 # define HAVE_GETTIMEOFDAY    1
191 # define HAVE_GRP_H           1
192 # define HAVE_IO_H            1
193 # define HAVE_LIMITS_H        1
194 # define HAVE_MALLOC_H        1
195 # define HAVE_MEMCPY          1
196 # define HAVE_MEMMOVE         1
197 # define HAVE_PROCESS_H       1
198 # define HAVE_PUTENV          1
199 # define HAVE_PWD_H           1
200 # define HAVE_SETJMP_H        1
201 # define HAVE_SIGNAL_H        1
202 # define HAVE_STDLIB_H        1
203 # define HAVE_STRERROR        1
204 # define HAVE_STRING_H        1
205 # define HAVE_SYS_STAT_H      1
206 # define HAVE_SYS_TYPES_H     1
207 # define HAVE_UNISTD_H        1
208 # define HAVE_VFPRINTF        1
209 # define TIME_WITH_SYS_TIME   1
210 /* # define HAVE_FULLPATH        1 */
211 # define HAVE_STRTOF          1
212 # define SIZEOF_LONG          4
213 # define HAVE_STDINT_H        1
214 # define HAVE_INTTYPES_H      1
215 # define DYNAMIC_WIN32        1
216 # define HAVE__STATI64        1
217 #endif
218 
219 #if defined(WIN64) && defined(_MSC_VER)
220 # define HAVE_ASSERT_H        1
221 # define HAVE_CTYPE_H         1
222 # define HAVE_ERRNO_H         1
223 # define HAVE_FTIME           1
224 # define HAVE_FTRUNCATE       1
225 # define HAVE_IO_H            1
226 # define HAVE_LIMITS_H        1
227 # define HAVE_MALLOC_H        1
228 # define HAVE_MEMCPY          1
229 # define HAVE_MEMMOVE         1
230 # define HAVE_SETJMP_H        1
231 # define HAVE_SIGNAL_H        1
232 # define HAVE_STDARG_H        1
233 # define HAVE_STDLIB_H        1
234 # define HAVE_STRERROR        1
235 # define HAVE_STRING_H        1
236 # define HAVE_SYS_STAT_H      1
237 # define HAVE_VFPRINTF        1
238 # define HAVE__FULLPATH       1
239 # define HAVE__SPLITPATH      1
240 # define HAVE_FCNTL_H         1
241 # define SIZEOF_LONG          4
242 # define HAVE_STDINT_H        1
243 # define HAVE_INTTYPES_H      1
244 # define DYNAMIC_WIN32        1
245 # define HAVE__STATI64        1
246 #endif
247 
248 #if defined(WIN32) && defined(__MINGW32__)
249 # define HAVE_ASSERT_H        1
250 # define HAVE_CTYPE_H         1
251 # define HAVE_IO_H            1
252 # define HAVE_LIMITS_H        1
253 # define HAVE_MALLOC_H        1
254 # define HAVE_MEMCPY          1
255 # define HAVE_MEMMOVE         1
256 # define HAVE_PROCESS_H       1
257 # define HAVE_PUTENV          1
258 # define HAVE_SETJMP_H        1
259 # define HAVE_SIGNAL_H        1
260 # define HAVE_STDLIB_H        1
261 # define HAVE_STRERROR        1
262 # define HAVE_STRING_H        1
263 # define HAVE_SYS_STAT_H      1
264 # define HAVE_SYS_TYPES_H     1
265 # define HAVE_UNISTD_H        1
266 # define HAVE_VFPRINTF        1
267 # define TIME_WITH_SYS_TIME   1
268 /* # define HAVE_FTRUNCATE       1 */
269 /* # define HAVE_FULLPATH        1 */
270 /* # define HAVE_GETTIMEOFDAY    1 */
271 # define HAVE_FCNTL_H         1
272 # define HAVE_STRTOF          1
273 # define SIZEOF_LONG          4
274 # define DYNAMIC_WIN32        1
275 # define HAVE__STATI64        1
276 #endif
277 
278 #if defined(WIN32) && defined(__LCC__)
279 # define HAVE_ASSERT_H        1
280 # define HAVE_CTYPE_H         1
281 # define HAVE_IO_H            1
282 # define HAVE_LIMITS_H        1
283 # define HAVE_MALLOC_H        1
284 # define HAVE_PROCESS_H       1
285 # define HAVE_SETJMP_H        1
286 # define HAVE_SIGNAL_H        1
287 # define HAVE_STDLIB_H        1
288 # define HAVE_STRING_H        1
289 # define HAVE_SYS_STAT_H      1
290 # define HAVE_SYS_TYPES_H     1
291 /* # define HAVE_UNISTD_H        1 */
292 # define HAVE_MEMCPY          1
293 # define HAVE_MEMMOVE         1
294 # define HAVE_PUTENV          1
295 # define HAVE_STRERROR        1
296 # define HAVE_VFPRINTF        1
297 # define TIME_WITH_SYS_TIME   1
298 /* # define HAVE_FTRUNCATE       1 */
299 /* # define HAVE_FULLPATH        1 */
300 /* # define HAVE_GETTIMEOFDAY    1 */
301 # define HAVE_FCNTL_H         1
302 # define SIZEOF_LONG          4
303 # define DYNAMIC_WIN32        1
304 # define HAVE__STATI64        1
305 #endif
306 
307 #if (defined(DOS) || defined(MSDOS)) && defined(DJGPP)
308 # define HAVE_ASSERT_H        1
309 # define HAVE_CTYPE_H         1
310 # define HAVE_FTRUNCATE       1
311 # define HAVE_GETOPT          1
312 # define HAVE_GETTIMEOFDAY    1
313 # define HAVE_IO_H            1
314 # define HAVE_LIMITS_H        1
315 # define HAVE_MALLOC_H        1
316 # define HAVE_MEMCPY          1
317 # define HAVE_MEMMOVE         1
318 # define HAVE_PUTENV          1
319 # define HAVE_RANDOM          1
320 # define HAVE_SETJMP_H        1
321 # define HAVE_STDARG_H        1
322 # define HAVE_STRERROR        1
323 # define HAVE_STRING_H        1
324 # define HAVE_SYS_STAT_H      1
325 # define HAVE_SYS_TYPES_H     1
326 # define HAVE_TRUENAME        1
327 # define HAVE_UNISTD_H        1
328 # define HAVE_USLEEP          1
329 # define HAVE_VFPRINTF        1
330 # define TIME_WITH_SYS_TIME   1
331 # ifndef _MAX_PATH
332 #  define _MAX_PATH           PATH_MAX
333 # endif
334 # define HAVE_FCNTL_H         1
335 # define SIZEOF_LONG          4
336 #endif
337 
338 #if defined(_AMIGA)
339 # define HAVE_ASSERT_H        1
340 # define HAVE_MEMCPY          1
341 # define HAVE_MEMMOVE         1
342 # define HAVE_PUTENV          1
343 # define HAVE_SETJMP_H        1
344 # define HAVE_STRERROR        1
345 # define HAVE_SYS_STAT_H      1
346 # define HAVE_UNISTD_H        1
347 # define HAVE_VFPRINTF        1
348 # define UNIX                 1
349 # define HAVE_FCNTL_H         1
350 # define SIZEOF_LONG          4
351 #endif
352