1 /* RCS $Id: config.h,v 1.2 2008-03-05 18:37:29 kz Exp $ 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 #if defined (_MSC_VER) 29 # if _MSC_VER < 500 30 Force a compile-time blowup. 31 Do not define "#define _MSC_VER" for MSC compilers earlier than 5.0. 32 # endif 33 #endif 34 35 /* define this for configurations that don't have the coreleft function 36 * so that the code compiles. To my knowledge coreleft exists only on 37 * Turbo C, but it is needed here since the function is used in many debug 38 * macros. */ 39 #define coreleft() 0L 40 41 /* MSC Version 4.0 doesn't understand SIGTERM, later versions do. */ 42 #ifndef SIGTERM 43 # define SIGTERM SIGINT 44 #endif 45 46 /* Fixes unimplemented line buffering for MSC 5.x and 6.0. 47 * MSC _IOLBF is the same as _IOFBF 48 */ 49 #if defined(MSDOS) && defined (_MSC_VER) 50 # undef _IOLBF 51 # define _IOLBF _IONBF 52 #endif 53 54 /* in alloc.h: size_t is redefined 55 * defined in stdio.h which is included by alloc.h 56 */ 57 #if defined(MSDOS) && defined (_MSC_VER) 58 # define _TYPES_ 59 #endif 60 61 /* in sysintf.c: SIGQUIT is used, this is not defined in MSC */ 62 #ifndef SIGQUIT 63 # define SIGQUIT SIGTERM 64 #endif 65 66 /* MSC doesn't seem to care about CONST */ 67 #define CONST 68 69 #ifndef MSDOS 70 # define MSDOS 1 71 #endif 72 73 #define REAL_MSDOS 1 74 75 /* a small problem with pointer to voids on some unix machines needs this */ 76 #define DMPVOID void * 77 78 /* Have to pull this in for the standard lib defines */ 79 #include <io.h> 80