home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Games / NetHack 3.1.3 / source / include / os2conf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-01  |  2.4 KB  |  116 lines  |  [TEXT/R*ch]

  1. /*    SCCS Id: @(#)os2conf.h    3.1    93/01/18 */
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3. /* Copyright (c) Timo Hakulinen, 1990, 1991, 1992, 1993. */
  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. #ifdef MFLOPPY
  65.  
  66. # define FROMPERM    1    /* for ramdisk use */
  67. # define TOPERM        2    /* - " - */
  68. # define ACTIVE        1
  69. # define SWAPPED    2
  70.  
  71. struct finfo {
  72.     int  where;
  73.     long time;
  74.     long size;
  75. };
  76. extern struct finfo fileinfo[];
  77. # define ZFINFO { 0, 0L, 0L }
  78.  
  79. #endif /* MFLOPPY */
  80.  
  81. #ifndef SYSTEM_H
  82. # include "system.h"
  83. #endif
  84.  
  85. #define index    strchr
  86. #define rindex    strrchr
  87.  
  88. #include <time.h>
  89.  
  90. /* the high quality random number routines */
  91.  
  92. #ifdef RANDOM
  93. # define Rand()    random()
  94. #else
  95. # define Rand()    rand()
  96. #endif
  97.  
  98. /* file creation mask */
  99.  
  100. #include <sys\types.h>
  101. #include <sys\stat.h>
  102.  
  103. #define FCMASK    (S_IREAD | S_IWRITE)
  104.  
  105. #include <fcntl.h>
  106.  
  107. #define exit    msexit        /* do chdir first */
  108.  
  109. #ifndef REDO
  110. # undef    Getchar
  111. # define Getchar nhgetch
  112. #endif
  113.  
  114. #endif /* OS2CONF_H */
  115. #endif /* OS2 */
  116.