miscellaneous formatting
[aNetHack.git] / include / tosconf.h
blob1ccf132bd5c1e87cd3f34b70db005bfca7401108
1 /* NetHack 3.6 tosconf.h $NHDT-Date: 1432512782 2015/05/25 00:13:02 $ $NHDT-Branch: master $:$NHDT-Revision: 1.7 $ */
2 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3 /* NetHack may be freely redistributed. See license for details. */
5 #ifdef TOS
6 #ifndef TOSCONF_H
7 #define TOSCONF_H
9 #define MICRO /* must be defined to allow some inclusions */
12 Adjust these options to suit your compiler. The default here is for
13 GNU C with the MiNT library.
16 /*#define NO_SIGNAL /* library doesn't support signals */
17 /*#define NO_FSTAT /* library doesn't have fstat() call */
18 #define MINT /* library supports MiNT extensions to TOS */
20 #ifdef __MINT__
21 #define MINT
22 #endif
24 #ifdef O_BINARY
25 #define FCMASK O_BINARY
26 #else
27 #define FCMASK 0660
28 #define O_BINARY 0
29 #endif
31 #ifdef UNIXDEBUG
32 #define remove(x) unlink(x)
33 #endif
35 /* configurable options */
36 #define MFLOPPY /* floppy support */
37 #define RANDOM /* improved random numbers */
38 #define SHELL /* allow spawning of shell */
39 #define TERMLIB /* use termcap */
40 #define TEXTCOLOR /* allow color */
41 #define MAIL /* enable the fake maildemon */
42 #ifdef MINT
43 #define SUSPEND /* allow suspending the game */
44 #endif
46 #ifndef TERMLIB
47 #define ANSI_DEFAULT /* use vt52 by default */
48 #endif
50 #if defined(__GNUC__) || defined(__MINT__)
51 /* actually, only more recent GNU C libraries have strcmpi
52 * on the other hand, they're free -- if yours is out of
53 * date, grab the most recent from atari.archive.umich.edu
55 #define STRNCMPI
56 #undef strcmpi
57 extern int FDECL(strcmpi, (const char *, const char *));
58 extern int FDECL(strncmpi, (const char *, const char *, size_t));
59 #endif
61 #include <termcap.h>
62 #include <unistd.h>
63 /* instead of including system.h from pcconf.h */
64 #include <string.h>
65 #include <stdlib.h>
66 #include <types.h>
67 #define SIG_RET_TYPE __Sigfunc
68 #define SYSTEM_H
70 #ifndef MICRO_H
71 #include "micro.h"
72 #endif
73 #ifndef PCCONF_H
74 #include "pcconf.h" /* remainder of stuff is same as the PC */
75 #endif
77 #ifdef TEXTCOLOR
78 extern boolean colors_changed; /* in tos.c */
79 #endif
81 #ifdef __GNUC__
82 #define GCC_BUG /* correct a gcc bug involving double for loops */
83 #endif
85 #endif /* TOSCONF_H */
86 #endif /* TOS */