Source:NetHack 3.4.3/include/os2conf.h

From NetHackWiki
Jump to: navigation, search

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

  1. /*	SCCS Id: @(#)os2conf.h	3.4	1996/10/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. */

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