VirtualBox

source: kBuild/trunk/src/kmk/config.h.win@ 3387

Last change on this file since 3387 was 3261, checked in by bird, 5 years ago

kmk: windows build fixes

  • Property svn:eol-style set to native
File size: 16.0 KB
Line 
1/* config.h.W32 -- hand-massaged config.h file for Windows builds -*-C-*-
2
3Copyright (C) 1996-2016 Free Software Foundation, Inc.
4This file is part of GNU Make.
5
6GNU Make is free software; you can redistribute it and/or modify it under the
7terms of the GNU General Public License as published by the Free Software
8Foundation; either version 3 of the License, or (at your option) any later
9version.
10
11GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License along with
16this program. If not, see <http://www.gnu.org/licenses/>. */
17
18#ifndef ___config_h_win
19#define ___config_h_win
20
21/* Suppress some Visual C++ warnings.
22 Maybe after the code cleanup for ISO C we can remove some/all of these. */
23#if _MSC_VER > 1000
24# pragma warning(disable:4100) /* unreferenced formal parameter */
25# pragma warning(disable:4102) /* unreferenced label */
26# pragma warning(disable:4127) /* conditional expression is constant */
27# pragma warning(disable:4131) /* uses old-style declarator */
28# pragma warning(disable:4702) /* unreachable code */
29# ifndef _CRT_SECURE_NO_WARNINGS
30# define _CRT_SECURE_NO_WARNINGS /* function or variable may be unsafe */
31# endif
32# ifndef _CRT_NONSTDC_NO_WARNINGS
33# define _CRT_NONSTDC_NO_WARNINGS /* functions w/o a leading underscore */
34# endif
35#endif
36
37/* Define to 1 if the 'closedir' function returns void instead of 'int'. */
38/* #undef CLOSEDIR_VOID */
39
40/* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP
41 systems. This function is required for 'alloca.c' support on those systems.
42 */
43/* #undef CRAY_STACKSEG_END */
44
45/* Define to 1 if using 'alloca.c'. */
46/* #undef C_ALLOCA */
47
48/* Define to 1 if using 'getloadavg.c'. */
49#define C_GETLOADAVG 1
50
51/* Define to 1 for DGUX with <sys/dg_sys_info.h>. */
52/* #undef DGUX */
53
54/* Define to 1 if translation of program messages to the user's native
55 language is requested. */
56/* #undef ENABLE_NLS */
57
58/* Use high resolution file timestamps if nonzero. */
59#define FILE_TIMESTAMP_HI_RES 0
60
61/* Define to 1 if the 'getloadavg' function needs to be run setuid or setgid.
62 */
63/* #undef GETLOADAVG_PRIVILEGED */
64
65/* Define to 1 if you have 'alloca', as a function or macro. */
66#define HAVE_ALLOCA 1
67
68/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
69 */
70/* #undef HAVE_ALLOCA_H */
71
72/* Define to 1 if you have the 'atexit' function. */
73#define HAVE_ATEXIT 1
74
75/* Define if your compiler conforms to the ANSI C standard. */
76#define HAVE_ANSI_COMPILER 1
77
78/* Use case insensitive file names */
79/* #undef HAVE_CASE_INSENSITIVE_FS */
80
81/* Define to 1 if you have the clock_gettime function. */
82/* #undef HAVE_CLOCK_GETTIME */
83
84/* Embed GNU Guile support. Windows build sets this on the
85 compilation command line. */
86/* #undef HAVE_GUILE */
87
88/* Define if the GNU dcgettext() function is already present or preinstalled.
89 */
90/* #undef HAVE_DCGETTEXT */
91
92/* Define to 1 if you have the declaration of 'bsd_signal', and to 0 if you
93 don't. */
94#define HAVE_DECL_BSD_SIGNAL 0
95
96/* Define to 1 if you have the declaration of 'sys_siglist', and to 0 if you
97 don't. */
98#define HAVE_DECL_SYS_SIGLIST 0
99
100/* Define to 1 if you have the declaration of '_sys_siglist', and to 0 if you
101 don't. */
102#define HAVE_DECL__SYS_SIGLIST 0
103
104/* Define to 1 if you have the declaration of '__sys_siglist', and to 0 if you
105 don't. */
106#define HAVE_DECL___SYS_SIGLIST 0
107
108/* Define to 1 if you have the <dirent.h> header file, and it defines 'DIR'.
109 */
110#define HAVE_DIRENT_H 1
111
112/* Define to 1 if you have the <direct.h> header file, and it defines getcwd()
113 and chdir().
114 */
115#if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(__INTERIX)
116# define HAVE_DIRECT_H 1
117#endif
118
119/* Use platform specific coding */
120#define HAVE_DOS_PATHS 1
121
122/* Define to 1 if you have the 'dup2' function. */
123#define HAVE_DUP2 1
124
125/* Define to 1 if you have the <fcntl.h> header file. */
126#define HAVE_FCNTL_H 1
127
128/* Define to 1 if you have the 'fdopen' function. */
129#ifdef __MINGW32__
130#define HAVE_FDOPEN 1
131#endif
132
133/* Define to 1 if you have the 'fileno' function. */
134#define HAVE_FILENO 1
135
136/* Define to 1 if you have the 'getcwd' function. */
137#define HAVE_GETCWD 1
138
139/* Define to 1 if you have the 'getgroups' function. */
140/* #undef HAVE_GETGROUPS */
141
142/* Define to 1 if you have the 'gethostbyname' function. */
143/* #undef HAVE_GETHOSTBYNAME */
144
145/* Define to 1 if you have the 'gethostname' function. */
146/* #undef HAVE_GETHOSTNAME */
147
148/* Define to 1 if you have the 'getloadavg' function. */
149/* #undef HAVE_GETLOADAVG */
150
151/* Define to 1 if you have the 'getrlimit' function. */
152/* #undef HAVE_GETRLIMIT */
153
154/* Define if the GNU gettext() function is already present or preinstalled. */
155/* #undef HAVE_GETTEXT */
156
157/* Define to 1 if you have a standard gettimeofday function */
158#ifdef __MINGW32__
159#define HAVE_GETTIMEOFDAY 1
160#endif
161
162/* Define if you have the iconv() function. */
163/* #undef HAVE_ICONV */
164
165/* Define to 1 if you have the <inttypes.h> header file. */
166#ifdef __MINGW32__
167#define HAVE_INTTYPES_H 1
168#endif
169
170/* Define to 1 if you have the 'dgc' library (-ldgc). */
171/* #undef HAVE_LIBDGC */
172
173/* Define to 1 if you have the 'kstat' library (-lkstat). */
174/* #undef HAVE_LIBKSTAT */
175
176/* Define to 1 if you have the <limits.h> header file. */
177#define HAVE_LIMITS_H 1
178
179/* Define to 1 if you have the <locale.h> header file. */
180#define HAVE_LOCALE_H 1 /* bird: differs */
181
182/* Define to 1 if you have the 'lstat' function. */
183/* #undef HAVE_LSTAT */
184
185/* Define to 1 if you have the <mach/mach.h> header file. */
186/* #undef HAVE_MACH_MACH_H */
187
188/* Define to 1 if you have the <memory.h> header file. */
189#define HAVE_MEMORY_H 1
190
191/* Define to 1 if you have the 'mkstemp' function. */
192/* #undef HAVE_MKSTEMP */
193
194/* Define to 1 if you have the 'mktemp' function. */
195#define HAVE_MKTEMP 1
196
197/* Define to 1 if you have the <ndir.h> header file, and it defines 'DIR'. */
198/* #undef HAVE_NDIR_H */
199
200/* Define to 1 if you have the <nlist.h> header file. */
201/* #undef HAVE_NLIST_H */
202
203/* Define to 1 if you have the 'pipe' function. */
204/* #undef HAVE_PIPE */
205
206/* Define to 1 if you have the 'pstat_getdynamic' function. */
207/* #undef HAVE_PSTAT_GETDYNAMIC */
208
209/* Define to 1 if you have the 'readlink' function. */
210/* #undef HAVE_READLINK */
211
212/* Define to 1 if you have the 'realpath' function. */
213/* #undef HAVE_REALPATH */
214
215/* Define to 1 if <signal.h> defines the SA_RESTART constant. */
216/* #undef HAVE_SA_RESTART */
217
218/* Define to 1 if you have the 'setegid' function. */
219/* #undef HAVE_SETEGID */
220
221/* Define to 1 if you have the 'seteuid' function. */
222/* #undef HAVE_SETEUID */
223
224/* Define to 1 if you have the 'setlinebuf' function. */
225/* #undef HAVE_SETLINEBUF */
226
227/* Define to 1 if you have the 'setlocale' function. */
228/*#define HAVE_SETLOCALE 1*/
229
230/* Define to 1 if you have the 'setregid' function. */
231/* #undef HAVE_SETREGID */
232
233/* Define to 1 if you have the 'setreuid' function. */
234/* #undef HAVE_SETREUID */
235
236/* Define to 1 if you have the 'setrlimit' function. */
237/* #undef HAVE_SETRLIMIT */
238
239/* Define to 1 if you have the 'setvbuf' function. */
240#define HAVE_SETVBUF 1
241
242/* Define to 1 if you have the 'sigaction' function. */
243/* #undef HAVE_SIGACTION */
244
245/* Define to 1 if you have the 'sigsetmask' function. */
246/* #undef HAVE_SIGSETMASK */
247
248/* Define to 1 if you have the 'socket' function. */
249/* #undef HAVE_SOCKET */
250
251/* Define to 1 if you have the <stdint.h> header file. */
252#if defined(__MINGW32__) || _MSC_VER >= 1600 /* bird: added latter */
253# define HAVE_STDINT_H 1
254#endif
255
256/* Define to 1 if you have the <stdlib.h> header file. */
257#define HAVE_STDLIB_H 1
258
259/* Define to 1 if you have the 'strcasecmp' function. */
260#ifdef __MINGW32__
261#define HAVE_STRCASECMP 1
262#endif
263
264/* Define to 1 if you have the 'strcmpi' function. */
265#define HAVE_STRCMPI 1
266
267/* Define to 1 if you have the 'strcoll' function and it is properly defined.
268 */
269#define HAVE_STRCOLL 1
270
271/* Define to 1 if you have the 'strdup' function. */
272#define HAVE_STRDUP 1
273
274/* Define to 1 if you have the 'strerror' function. */
275#define HAVE_STRERROR 1
276
277/* Define to 1 if you have the 'stricmp' function. */
278#define HAVE_STRICMP 1
279
280/* Define to 1 if you have the <strings.h> header file. */
281/* #define HAVE_STRINGS_H 1 */
282
283/* Define to 1 if you have the <string.h> header file. */
284#define HAVE_STRING_H 1
285
286/* Define to 1 if you have the 'strncasecmp' function. */
287#ifdef __MINGW32__
288#define HAVE_STRNCASECMP 1
289#endif
290
291/* Define to 1 if you have the 'strncmpi' function. */
292/* #undef HAVE_STRNCMPI */
293
294/* Define to 1 if you have the 'strndup' function. */
295/* #undef HAVE_STRNDUP */
296
297/* Define to 1 if you have the 'strnicmp' function. */
298/*#ifdef __MINGW32__ - bird */
299#define HAVE_STRNICMP 1
300/* #endif - bird */
301
302/* Define to 1 if you have the 'strsignal' function. */
303/* #undef HAVE_STRSIGNAL */
304
305/* Define to 1 if you have the `isatty' function. */
306#define HAVE_ISATTY 1
307
308/* Define to 1 if you have the `ttyname' function. */
309#define HAVE_TTYNAME 1
310char *ttyname (int);
311
312/* Define to 1 if 'n_un.n_name' is a member of 'struct nlist'. */
313/* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */
314
315/* Define to 1 if you have the <sys/dir.h> header file, and it defines 'DIR'.
316 */
317/* #undef HAVE_SYS_DIR_H */
318
319/* Define to 1 if you have the <sys/ndir.h> header file, and it defines 'DIR'.
320 */
321/* #undef HAVE_SYS_NDIR_H */
322
323/* Define to 1 if you have the <sys/param.h> header file. */
324#ifdef __MINGW32__
325#define HAVE_SYS_PARAM_H 1
326#endif
327
328/* Define to 1 if you have the <sys/resource.h> header file. */
329/* #undef HAVE_SYS_RESOURCE_H */
330
331/* Define to 1 if you have the <sys/stat.h> header file. */
332#define HAVE_SYS_STAT_H 1
333
334/* Define to 1 if you have the <sys/timeb.h> header file. */
335#define HAVE_SYS_TIMEB_H 1
336
337/* Define to 1 if you have the <sys/time.h> header file. */
338#ifdef __MINGW32__
339#define HAVE_SYS_TIME_H 1
340#endif
341
342/* Define to 1 if you have the <sys/types.h> header file. */
343#define HAVE_SYS_TYPES_H 1
344
345/* Define to 1 if you have the <sys/wait.h> header file. */
346/* #undef HAVE_SYS_WAIT_H */
347
348/* Define to 1 if you have the \'union wait' type in <sys/wait.h>. */
349/* #undef HAVE_UNION_WAIT */
350
351/* Define to 1 if you have the <unistd.h> header file. */
352#ifdef __MINGW32__
353#define HAVE_UNISTD_H 1
354#endif
355
356/* Define to 1 if you have the 'wait3' function. */
357/* #undef HAVE_WAIT3 */
358
359/* Define to 1 if you have the 'waitpid' function. */
360/* #undef HAVE_WAITPID */
361
362/* Build host information. (not used by kmk) */
363#define MAKE_HOST "Windows32"
364
365/* Define to 1 to enable job server support in GNU make. */
366#define MAKE_JOBSERVER 1
367
368/* Define to 1 to enable 'load' support in GNU make. */
369#define MAKE_LOAD 1
370
371/* Define to 1 to enable symbolic link timestamp checking. */
372/* #undef MAKE_SYMLINKS */
373
374/* Define to 1 if your 'struct nlist' has an 'n_un' member. Obsolete, depend
375 on 'HAVE_STRUCT_NLIST_N_UN_N_NAME */
376/* #undef NLIST_NAME_UNION */
377
378/* Define to 1 if struct nlist.n_name is a pointer rather than an array. */
379/* #undef NLIST_STRUCT */
380
381/* Define to 1 if your C compiler doesn't accept -c and -o together. */
382/* #undef NO_MINUS_C_MINUS_O */
383
384/* Name of this package (needed by automake) */
385#define PACKAGE "make"
386
387/* Define to the address where bug reports for this package should be sent. */
388#define PACKAGE_BUGREPORT "bug-make@gnu.org"
389
390/* Define to the full name of this package. */
391#define PACKAGE_NAME "kmk"
392
393/* Define to the home page for this package. */
394#define PACKAGE_URL "http://kbuild.org/"
395
396/* Define to the version of this package. */
397#define PACKAGE_VERSION "4.2.1"
398
399/* Define to the character that separates directories in PATH. */
400#define PATH_SEPARATOR_CHAR ';'
401
402/* Define as the return type of signal handlers ('int' or 'void'). */
403#define RETSIGTYPE void
404
405/* Define to the name of the SCCS 'get' command. */
406#define SCCS_GET "echo no sccs get"
407
408/* Define this if the SCCS 'get' command understands the '-G<file>' option. */
409/* #undef SCCS_GET_MINUS_G */
410
411/* Define to 1 if the 'setvbuf' function takes the buffering type as its
412 second argument and the buffer pointer as the third, as on System V before
413 release 3. */
414/* #undef SETVBUF_REVERSED */
415
416/* If using the C implementation of alloca, define if you know the
417 direction of stack growth for your system; otherwise it will be
418 automatically deduced at run time.
419 STACK_DIRECTION > 0 => grows toward higher addresses
420 STACK_DIRECTION < 0 => grows toward lower addresses
421 STACK_DIRECTION = 0 => direction of growth unknown */
422/* #undef STACK_DIRECTION */
423
424/* Define to 1 if the 'S_IS*' macros in <sys/stat.h> do not work properly. */
425/* #undef STAT_MACROS_BROKEN */
426
427/* Define to 1 if you have the ANSI C header files. */
428#define STDC_HEADERS 1
429
430/* Define if struct stat contains a nanoseconds field */
431#define ST_MTIM_NSEC st_mtim.tv_nsec /* bird */
432#define ST_ATIM_NSEC st_atim.tv_nsec /* bird */
433
434/* Define to 1 on System V Release 4. */
435/* #undef SVR4 */
436
437/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
438#ifdef __MINGW32__
439#define TIME_WITH_SYS_TIME 1
440#endif
441
442/* Define to 1 for Encore UMAX. */
443/* #undef UMAX */
444
445/* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of
446 <sys/cpustats.h>. */
447/* #undef UMAX4_3 */
448
449/* Version number of package */
450#define VERSION "4.2.1"
451
452/* Define if using the dmalloc debugging malloc package */
453/* #undef WITH_DMALLOC */
454
455/* Define to 1 if on AIX 3.
456 System headers sometimes define this.
457 We just want to avoid a redefinition error message. */
458#ifndef _ALL_SOURCE
459/* # undef _ALL_SOURCE */
460#endif
461
462/* Number of bits in a file offset, on hosts where this is settable. */
463/* #undef _FILE_OFFSET_BITS */
464
465/* Define for large files, on AIX-style hosts. */
466/* #undef _LARGE_FILES */
467
468/* Define to 1 if on MINIX. */
469/* #undef _MINIX */
470
471/* Define to 2 if the system does not provide POSIX.1 features except with
472 this defined. */
473/* #undef _POSIX_1_SOURCE */
474
475/* Define to 1 if you need to in order for 'stat' and other things to work. */
476/* #undef _POSIX_SOURCE */
477
478/* Define to empty if 'const' does not conform to ANSI C. */
479/* #undef const */
480
481/* Define to 'int' if <sys/types.h> doesn't define. */
482#define gid_t int
483
484/* Define to 'int' if <sys/types.h> does not define. */
485/* Note (bird)! sub_proc.c needs this to be pointer sized. */
486#define pid_t intptr_t
487
488/* Define to 'int' if <sys/types.h> doesn't define. */
489#define uid_t int
490
491/* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
492#if !HAVE_STDINT_H && !HAVE_INTTYPES_H
493# if 0
494# define uintmax_t unsigned long
495# else
496# define uintmax_t unsigned __int64
497# endif
498#endif
499
500/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
501/* #undef HAVE_SYS_WAIT_H */
502
503/* Define to the installation directory for locales. */
504#define LOCALEDIR ""
505
506/*
507 * Refer to README.W32 for info on the following settings
508 */
509
510
511/*
512 * If you have a shell that does not grok 'sh -c quoted-command-line'
513 * correctly, you need this setting. Please see below for specific
514 * shell support.
515 */
516/*#define BATCH_MODE_ONLY_SHELL 1 */
517
518/*
519 * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set.
520 * Do NOT define BATCH_MODE_ONLY_SHELL if you define HAVE_CYGWIN_SHELL
521 */
522/*#define HAVE_CYGWIN_SHELL 1 */
523
524/*
525 * Define if you have the MKS tool set or shell. Do NOT define
526 * BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL
527 */
528/*#define HAVE_MKS_SHELL 1 */
529
530/*
531 * Enforce the mutual exclusivity restriction.
532 */
533#ifdef HAVE_MKS_SHELL
534#undef BATCH_MODE_ONLY_SHELL
535#endif
536
537#ifdef HAVE_CYGWIN_SHELL
538#undef BATCH_MODE_ONLY_SHELL
539#endif
540
541/* bird stat hacks. */
542#include <io.h>
543#include <direct.h>
544#include "nt/ntstat.h"
545
546/* bird dirent hack. */
547#define _DIRENT_H /* see w32/dirent.h */
548#include "nt/ntdir.h"
549#define _DIRENT_HAVE_D_NAMLEN 1
550#define _DIRENT_HAVE_D_TYPE 1
551
552/* bird: Not sure if this is necessary any more... */
553#define BATCH_MODE_ONLY_SHELL
554
555#include "inlined_memchr.h"
556
557/* bird: Include mscfakes.h to make sure we have all it's tricks applied. */
558#ifndef ___mscfakes_h
559# include "kmkbuiltin/mscfakes.h"
560#endif
561
562/*
563 * Map posixfcn.c stuff to non-conflicting names.
564 */
565#include <stdio.h>
566#include <io.h>
567
568#define tmpfile posixfcn_tmpfile
569FILE *posixfcn_tmpfile(void);
570
571#define isatty posixfcn_isatty
572int posixfcn_isatty(int fd);
573
574#endif /* bird */
575
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use