1 /*
2 --
3 -- SYNOPSIS
4 --      Configurarion include file.
5 --
6 -- DESCRIPTION
7 -- 	There is one of these for each specific machine configuration.
8 --	It can be used to further tweek the machine specific sources
9 --	so that they compile.
10 --
11 -- AUTHOR
12 --      Dennis Vadura, dvadura@dmake.wticorp.com
13 --
14 -- WWW
15 --      http://dmake.wticorp.com/
16 --
17 -- COPYRIGHT
18 --      Copyright (c) 1996,1997 by WTI Corp.  All rights reserved.
19 --
20 --      This program is NOT free software; you can redistribute it and/or
21 --      modify it under the terms of the Software License Agreement Provided
22 --      in the file <distribution-root>/COPYING.
23 --
24 -- LOG
25 --      Use cvs log to obtain detailed change logs.
26 */
27 
28 /* Attention! In the UNIX like builds with the ./configure ; make
29    procedure a config.h is generated. The autogenerated config.h
30    must not be there to compile dmake with MSC and the
31    "dmake\make.bat win95-vpp40" command. This file sets (among other
32    things) the needed HAS_... and HAVE_... macros.
33 
34    Don't forget to update the PACKAGE and VERSION macros!
35 */
36 
37 /* Name and version number of this package */
38 #define PACKAGE "dmake"
39 #define VERSION "4.13.0"
40 #define BUILDINFO "Windows / MS Visual C++"
41 
42 #if defined (_MSC_VER)
43 # if _MSC_VER < 500
44 	Force a compile-time blowup.
45 	Do not define "#define _MSC_VER" for MSC compilers earlier than 5.0.
46 # endif
47 #endif
48 
49 /* define this for configurations that don't have the coreleft function
50  * so that the code compiles.  To my knowledge coreleft exists only on
51  * Turbo C, but it is needed here since the function is used in many debug
52  * macros. */
53 #define coreleft() 0L
54 
55 /* MSC Version 4.0 doesn't understand SIGTERM, later versions do. */
56 /* config.h is included before signal.h therefore test MSC version */
57 #if _MSC_VER < 500
58 #   define SIGTERM SIGINT
59 #endif
60 
61 /* Fixes unimplemented line buffering for MSC 5.x and 6.0.
62  * MSC _IOLBF is the same as _IOFBF
63  */
64 #if defined(MSDOS) && defined (_MSC_VER)
65 #   undef  _IOLBF
66 #   define _IOLBF   _IONBF
67 #endif
68 
69 /* in alloc.h: size_t is redefined
70  * defined in stdio.h which is included by alloc.h
71  */
72 #if defined(MSDOS) && defined (_MSC_VER)
73 #   define _TYPES_
74 #endif
75 
76 /* in sysintf.c: SIGQUIT is used, this is not defined in MSC */
77 #ifndef SIGQUIT
78 #   define SIGQUIT SIGTERM
79 #endif
80 
81 /* MSC didn't seem to care about CONST in the past */
82 #ifndef CONST
83 #   define CONST
84 #endif
85 
86 /* Assume case insensitive file system. */
87 #define CASE_INSENSITIVE_FS 1
88 
89 /* MSC has sys/types.h and sys/stat.h (this is tested only with MSVC++ 6.0) */
90 #define HAVE_SYS_TYPES_H 1
91 #define HAVE_SYS_STAT_H 1
92 
93 /* These functions are available! (this is tested only with MSVC++ 6.0) */
94 #define HAVE_GETCWD 1
95 #define HAVE_UTIME_NULL 1
96 #define HAVE_TZSET 1
97 #define HAVE_STRLWR 1
98 
99 #define HAVE_ERRNO_H 1
100 #define HAVE_STRERROR 1
101 #define HAVE_TEMPNAM 1
102 #define HAVE_FCNTL_H 1
103 #define HAVE_SETVBUF 1
104 
105 /* These defines are needed for itypes.h! (this is tested only with MSVC++ 6.0) */
106 #define SIZEOF_INT 4
107 #define SIZEOF_LONG 4
108 #define SIZEOF_SHORT 2
109 
110 #ifndef MSDOS
111 #   define MSDOS 1
112 #endif
113 
114 /* a small problem with pointer to voids on some unix machines needs this */
115 #define DMPVOID void *
116 
117 /* Use my own tempnam for MSC Version less than 6.0 */
118 #if _MSC_VER < 600
119 #   define tempnam dtempnam
120 #endif
121 
122