os2conf.h

Go to the documentation of this file.
00001 /*      SCCS Id: @(#)os2conf.h  3.4     1996/10/29      */
00002 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
00003 /* Copyright (c) Timo Hakulinen, 1990, 1991, 1992, 1993, 1996. */
00004 /* NetHack may be freely redistributed.  See license for details. */
00005 
00006 #ifdef OS2
00007 #ifndef OS2CONF_H
00008 #define OS2CONF_H
00009 
00010 /*
00011  * Compiler configuration.  Compiler may be
00012  * selected either here or in Makefile.os2.
00013  */
00014 
00015 /* #define OS2_MSC              /* Microsoft C 5.1 and 6.0 */
00016 #define OS2_GCC         /* GCC emx 0.8f */
00017 /* #define OS2_CSET2            /* IBM C Set/2 (courtesy Jeff Urlwin) */
00018 /* #define OS2_CSET2_VER_1      /* CSet/2 version selection */
00019 /* #define OS2_CSET2_VER_2      /* - " - */
00020 
00021 /*
00022  * System configuration.
00023  */
00024 
00025 #define OS2_USESYSHEADERS       /* use compiler's own system headers */
00026 /* #define OS2_HPFS             /* use OS/2 High Performance File System */
00027 
00028 #if defined(OS2_GCC) || defined(OS2_CSET2)
00029 # define OS2_32BITAPI           /* enable for compilation in OS/2 2.0 */
00030 #endif
00031 
00032 /*
00033  * Other configurable options.  Generally no
00034  * reason to touch the defaults, I think.
00035  */
00036 
00037 /*#define MFLOPPY                       /* floppy and ramdisk support */
00038 #define RANDOM                  /* Berkeley random(3) */
00039 #define SHELL                   /* shell escape */
00040 /* #define TERMLIB              /* use termcap file */
00041 #define ANSI_DEFAULT            /* allows NetHack to run without termcap file */
00042 #define TEXTCOLOR               /* allow color */
00043 
00044 /*
00045  * The remaining code shouldn't need modification.
00046  */
00047 
00048 #ifdef MSDOS
00049 # undef MSDOS                   /* MSC autodefines this but we don't want it */
00050 #endif
00051 
00052 #ifndef MICRO
00053 # define MICRO                  /* must be defined to allow some inclusions */
00054 #endif
00055 
00056 #if !defined(TERMLIB) && !defined(ANSI_DEFAULT)
00057 # define ANSI_DEFAULT   /* have to have one or the other */
00058 #endif
00059 
00060 #define PATHLEN         260     /* maximum pathlength (HPFS) */
00061 #define FILENAME        260     /* maximum filename length (HPFS) */
00062 #ifndef MICRO_H
00063 #include "micro.h"              /* necessary externs for [os_name].c */
00064 #endif
00065 
00066 #ifndef SYSTEM_H
00067 #include "system.h"
00068 #endif
00069 
00070 #ifndef index
00071 #define index   strchr
00072 #endif
00073 #ifndef rindex
00074 #define rindex  strrchr
00075 #endif
00076 
00077 #include <time.h>
00078 
00079 /* the high quality random number routines */
00080 
00081 #ifdef RANDOM
00082 # define Rand() random()
00083 #else
00084 # define Rand() rand()
00085 #endif
00086 
00087 /* file creation mask */
00088 
00089 #include <sys\types.h>
00090 #include <sys\stat.h>
00091 
00092 #define FCMASK  (S_IREAD | S_IWRITE)
00093 
00094 #include <fcntl.h>
00095 
00096 #ifdef __EMX__
00097 #include <unistd.h>
00098 #endif
00099 
00100 #ifndef REDO
00101 # undef Getchar
00102 # define Getchar nhgetch
00103 #endif
00104 
00105 void hangup(int i);
00106 #endif /* OS2CONF_H */
00107 #endif /* OS2 */