OSDN Git Service

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