1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
#define STRingize(x) #x
#define STR(x) STRingize(x)
#define MM_MAJOR 0
#define MM_MINOR 52
#define MM_NAME "MultiMail"
#define MM_SNAME "MMail"
#define MM_VERNUM STR(MM_MAJOR) "." STR(MM_MINOR)
#define MM_TOPHEADER MM_NAME "/%.16s v" MM_VERNUM
#define USE_SHADOWS // "Shadowed" windows
#define VANITY_PLATE // Author info -- undefine for longer packet list
/* With the default tar/gz compress command, leave this on. It causes the
entire file to be rearchived when using that format, instead of just
the .red file. If you replace the tar/gz command with something
smarter (e.g., via a script), you can disable the kludge.
*/
#define TAR_KLUDGE
/* ----- Some supported compilers ----- */
#if defined(__TURBOC__) && defined(__MSDOS__)
# define TURBO16
#endif
#if defined(__TURBOC__) && defined(__WIN32__)
# define BORLAND32
#endif
#if defined(__WATCOMC__) && defined(__I86__)
# define WATCOM16
#endif
#if defined(TURBO16) || defined(WATCOM16)
# define SIXTEENBIT
#endif
/* ----- Platform-specific defines ----- */
/* HAS_UNAME determines whether the "System" part of the tearline is taken
from the uname() function, or is hardwired. Turbo/Borland C++ and
Watcom don't have it.
*/
#if !defined(__TURBOC__) && !defined(__MINGW32__) && !defined(__WATCOMC__) && !defined(_MSC_VER)
# define HAS_UNAME
#endif
/* MS-DOS and DOS-like systems. */
#if defined(__MSDOS__) || defined(__WIN32__) || defined(__OS2__)
# define DOSCHARS
# define DOSNAMES
# define USE_SHELL
# define EXTRAPATH
/* Assume the use of PDCurses on these platforms (can't check it
explicitly until curses.h is included), and so:
Some characters are unprintable on standard Unix terminals, even with
A_ALTCHARSET set. But PDCurses will handle them.
*/
# define ALLCHARSOK
#else
/* Not a DOS-like system -- enable home directory elision.
*/
# define HAS_HOME
#endif
/* Also, see the NCURSES_SIGWINCH definition in interfac/interfac.h -- it
should be fine as is, but may need manual adjustment in some cases.
*/
/* I use strcasecmp() and strncasecmp() throughout, but some systems call
these functions stricmp() and strincmp().
*/
#if defined(__TURBOC__) || defined(__WATCOMC__) || defined(_MSC_VER)
# define USE_STRICMP
#endif
/* unistd.h is the POSIX header file. Borland/Turbo C doesn't have it. */
#if !defined(__TURBOC__) && !defined(__MINGW32__) && !defined(__WATCOMC__) && !defined(_MSC_VER)
# define HAS_UNISTD
#endif
/* Limit allocation sizes for 16-bit systems */
#ifdef SIXTEENBIT
# define LIMIT_MEM
# define MAXBLOCK 0x0FFE0L
#else
# define MAXBLOCK 0x07FFFFFE0L
#endif
/* For the 16-bit MS-DOS version compiled with Turbo C++ 3.0, I've added
the SPAWNO library by Ralf Brown to get more memory when shelling.
*/
#ifdef TURBO16
# define USE_SPAWNO
#endif
/* Watcom (all DOSish platforms) and Turbo C++ need an extra call to get
the drive letter changed, when changing directories.
*/
#if defined(__WATCOMC__) || defined(TURBO16)
# define USE_SETDISK
#endif
/* In Borland/Turbo C++, using findfirst()/findnext() is faster than
using readdir()/stat().
*/
#ifdef __TURBOC__
# define USE_DIRH
# define USE_FINDFIRST
#endif
/* Another variation, _findfirst()/_findnext(), for Windows. */
#ifdef __WIN32__
# ifndef USE_FINDFIRST
# define USE_FINDFIRST
# endif
# define USE_IOH
#endif
/* Borland C++ 5.5 barfs on time_t = 0, which appears as the timestamp of
the top-level directory. Also, utime(), though implemented, doesn't work
right.
*/
#ifdef BORLAND32
# define TIMEKLUDGE
# define USE_SETFTIME
#endif
/* Turbo C++ 3.0 lacks the "bool" and "off_t" types.*/
#ifndef TURBO16
# define HAS_BOOL
# define HAS_OFFT
#endif
/* Some lines in the code serve no purpose but to suppress the GCC warning
"might be used uninitialized in this function". Borland C++ 5.5, on the
other hand, complains "is assigned a value that is never used" if I
leave these lines _in_.
*/
#ifndef __TURBOC__
# define BOGUS_WARNING
#endif
/* ----- End of platform-specific defines ----- */
#ifndef HAS_BOOL
typedef unsigned char bool;
# define true 1
# define false 0
#endif
#ifndef HAS_OFFT
typedef long off_t;
#endif
|