File: tosconf.h

package info (click to toggle)
nethack 3.4.3-10.6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,644 kB
  • ctags: 16,957
  • sloc: ansic: 196,792; cpp: 7,083; sh: 6,887; yacc: 2,005; lex: 377; makefile: 112; awk: 89; sed: 11
file content (86 lines) | stat: -rw-r--r-- 2,109 bytes parent folder | download | duplicates (15)
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
/*	SCCS Id: @(#)tosconf.h	3.2	90/02/22	*/
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed.  See license for details. */

#ifdef TOS
#ifndef TOSCONF_H
#define TOSCONF_H

#define MICRO		/* must be defined to allow some inclusions */

/*
   Adjust these options to suit your compiler. The default here is for
   GNU C with the MiNT library.
*/

/*#define NO_SIGNAL		/* library doesn't support signals	*/
/*#define NO_FSTAT		/* library doesn't have fstat() call	*/
#define MINT			/* library supports MiNT extensions to TOS */

#ifdef __MINT__
#define MINT
#endif

#ifdef O_BINARY
#define FCMASK	O_BINARY
#else
#define FCMASK	0660
#define O_BINARY 0
#endif

#ifdef UNIXDEBUG
#define remove(x)	unlink(x)
#endif

/* configurable options */
#define MFLOPPY			/* floppy support		*/
#define RANDOM			/* improved random numbers	*/
#define SHELL			/* allow spawning of shell	*/
#define TERMLIB			/* use termcap			*/
#define TEXTCOLOR		/* allow color			*/
#define MAIL			/* enable the fake maildemon */
#ifdef MINT
#define SUSPEND			/* allow suspending the game	*/
#endif

#ifndef TERMLIB
#define ANSI_DEFAULT		/* use vt52 by default		*/
#endif

#if defined(__GNUC__) || defined(__MINT__)
/* actually, only more recent GNU C libraries have strcmpi
 * on the other hand, they're free -- if yours is out of
 * date, grab the most recent from atari.archive.umich.edu
 */
#define STRNCMPI
#undef strcmpi
extern int FDECL(strcmpi,(const char *, const char *));
extern int FDECL(strncmpi,(const char *, const char *, size_t));
#endif

#include <termcap.h>
#include <unistd.h>
/* instead of including system.h from pcconf.h */
#include <string.h>
#include <stdlib.h>
#include <types.h>
#define SIG_RET_TYPE __Sigfunc
#define SYSTEM_H

#ifndef MICRO_H
#include "micro.h"
#endif
#ifndef PCCONF_H
#include "pcconf.h"		/* remainder of stuff is same as the PC */
#endif

#ifdef TEXTCOLOR
extern boolean colors_changed;	/* in tos.c */
#endif

#ifdef __GNUC__
#define GCC_BUG		/* correct a gcc bug involving double for loops */
#endif

#endif /* TOSCONF_H */
#endif /* TOS */