Source:NetHack 3.2.0/os2conf.h

From NetHackWiki
Revision as of 09:13, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.2.0/os2conf.h moved to Source:NetHack 3.2.0/os2conf.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below is the full text to os2conf.h from the source code of NetHack 3.2.0. To link to a particular line, write [[NetHack 3.2.0/os2conf.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)os2conf.h	3.2	96/02/29	*/
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* Copyright (c) Timo Hakulinen, 1990, 1991, 1992, 1993, 1996. */
4.    /* NetHack may be freely redistributed.  See license for details. */
5.    
6.    #ifdef OS2
7.    #ifndef OS2CONF_H
8.    #define OS2CONF_H
9.    
10.   /*
11.    * Compiler configuration.  Compiler may be
12.    * selected either here or in Makefile.os2.
13.    */
14.   
15.   /* #define OS2_MSC		/* Microsoft C 5.1 and 6.0 */
16.   /* #define OS2_GCC		/* GCC emx 0.8f */
17.   /* #define OS2_CSET2		/* IBM C Set/2 (courtesy Jeff Urlwin) */
18.   
19.   /*
20.    * System configuration.
21.    */
22.   
23.   #define OS2_USESYSHEADERS	/* use compiler's own system headers */
24.   /* #define OS2_HPFS		/* use OS/2 High Performance File System */
25.   
26.   #if defined(OS2_GCC) || defined(OS2_CSET2)
27.   # define OS2_32BITAPI		/* enable for compilation in OS/2 2.0 */
28.   #endif
29.   
30.   /*
31.    * Other configurable options.  Generally no
32.    * reason to touch the defaults, I think.
33.    */
34.   
35.   #define MFLOPPY			/* floppy and ramdisk support */
36.   #define RANDOM			/* Berkeley random(3) */
37.   #define SHELL			/* shell escape */
38.   /* #define TERMLIB		/* use termcap file */
39.   #define ANSI_DEFAULT		/* allows NetHack to run without termcap file */
40.   #define TEXTCOLOR		/* allow color */
41.   
42.   /*
43.    * The remaining code shouldn't need modification.
44.    */
45.   
46.   #ifdef MSDOS
47.   # undef MSDOS			/* MSC autodefines this but we don't want it */
48.   #endif
49.   
50.   #ifndef MICRO
51.   # define MICRO			/* must be defined to allow some inclusions */
52.   #endif
53.   
54.   #if !defined(TERMLIB) && !defined(ANSI_DEFAULT)
55.   # define ANSI_DEFAULT	/* have to have one or the other */
56.   #endif
57.   
58.   #define PATHLEN 	260	/* maximum pathlength (HPFS) */
59.   #define FILENAME	260	/* maximum filename length (HPFS) */
60.   #ifndef MICRO_H
61.   #include "micro.h"		/* necessary externs for [os_name].c */
62.   #endif
63.   
64.   #ifndef SYSTEM_H
65.   #include "system.h"
66.   #endif
67.   
68.   #define index	strchr
69.   #define rindex	strrchr
70.   
71.   #include <time.h>
72.   
73.   /* the high quality random number routines */
74.   
75.   #ifdef RANDOM
76.   # define Rand()	random()
77.   #else
78.   # define Rand()	rand()
79.   #endif
80.   
81.   /* file creation mask */
82.   
83.   #include <sys\types.h>
84.   #include <sys\stat.h>
85.   
86.   #define FCMASK	(S_IREAD | S_IWRITE)
87.   
88.   #include <fcntl.h>
89.   
90.   #define exit	msexit		/* do chdir first */
91.   
92.   #ifndef REDO
93.   # undef	Getchar
94.   # define Getchar nhgetch
95.   #endif
96.   
97.   #endif /* OS2CONF_H */
98.   #endif /* OS2 */