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