File: os2conf.h

package info (click to toggle)
slashem 0.0.7E7F3-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,928 kB
  • sloc: ansic: 263,208; cpp: 7,180; yacc: 2,154; sh: 739; lex: 440; awk: 97; makefile: 56; sed: 11
file content (120 lines) | stat: -rw-r--r-- 2,749 bytes parent folder | download | duplicates (9)
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
/*	SCCS Id: @(#)os2conf.h	3.4	1996/10/29	*/
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* Copyright (c) Timo Hakulinen, 1990, 1991, 1992, 1993, 1996. */
/* NetHack may be freely redistributed.  See license for details. */

#ifdef OS2
#ifndef OS2CONF_H
#define OS2CONF_H

/*
 * Compiler configuration.  Compiler may be
 * selected either here or in Makefile.os2.
 */

/* #define OS2_MSC */		/* Microsoft C 5.1 and 6.0 */
#define OS2_GCC			/* GCC emx 0.8f */
/* #define OS2_CSET2 */		/* IBM C Set/2 (courtesy Jeff Urlwin) */
/* #define OS2_CSET2_VER_1 */	/* CSet/2 version selection */
/* #define OS2_CSET2_VER_2 */	/* - " - */

/*
 * System configuration.
 */

#define OS2_USESYSHEADERS	/* use compiler's own system headers */
#define OS2_HPFS		/* use OS/2 High Performance File System */

#if defined(OS2_GCC) || defined(OS2_CSET2)
# define OS2_32BITAPI		/* enable for compilation in OS/2 2.0 */
#endif

/*
 * Other configurable options.  Generally no
 * reason to touch the defaults, I think.
 */

/* #define MFLOPPY */		/* floppy and ramdisk support */
#define RANDOM			/* Berkeley random(3) */
#define SHELL			/* shell escape */
/* #define TERMLIB */		/* use termcap file */
#define ANSI_DEFAULT		/* allows NetHack to run without termcap file */
#define TEXTCOLOR		/* allow color */
#define MAIL			/* Allows for fake mail daemon to deliver mail */
#define TIMED_DELAY		/* enable the `timed_delay' run-time option */

#ifdef TEXTCOLOR
# define VIDEOSHADES
#endif

/*
 * The remaining code shouldn't need modification.
 */
#ifndef DLB
# define DLB	/* Untested without dlb, comment out on your own risk! */
#endif

#ifdef MSDOS
# undef MSDOS			/* MSC autodefines this but we don't want it */
#endif

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

#if !defined(TERMLIB) && !defined(ANSI_DEFAULT)
# define ANSI_DEFAULT	/* have to have one or the other */
#endif

#define PATHLEN 	260	/* maximum pathlength (HPFS) */
#define FILENAMELEN	260	/* maximum filename length (HPFS) */
#ifndef MICRO_H
#include "micro.h"		/* necessary externs for [os_name].c */
#endif

#ifndef SYSTEM_H
#include "system.h"
#endif

#ifndef index
#define index	strchr
#endif
#ifndef rindex
#define rindex	strrchr
#endif

#include <time.h>

/* the high quality random number routines */

#ifdef RANDOM
# define Rand()	random()
#else
# define Rand()	rand()
#endif

/* file creation mask */

#include <sys\types.h>
#include <sys\stat.h>

#define FCMASK	(S_IREAD | S_IWRITE)

#include <fcntl.h>

#ifdef __EMX__
#include <unistd.h>
#endif

#ifndef REDO
# undef	Getchar
# define Getchar nhgetch
#endif

#ifdef TIMED_DELAY
#define msleep(k) _sleep2(k)
#endif

void hangup(int i);
#endif /* OS2CONF_H */
#endif /* OS2 */