Source:NetHack 3.4.3/include/tosconf.h

From NetHackWiki
Jump to: navigation, search

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

  1. /*	SCCS Id: @(#)tosconf.h	3.2	90/02/22	*/
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3. /* 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 TOS
  2. #ifndef TOSCONF_H
  3. #define TOSCONF_H
  4.  
  5. #define MICRO		/* must be defined to allow some inclusions */
  6.  
  7. /*
  8. Adjust these options to suit your compiler. The default here is for
  9. GNU C with the MiNT library.
  10. */
  11.  
  12. /*#define NO_SIGNAL		/* library doesn't support signals	*/
  13. /*#define NO_FSTAT		/* library doesn't have fstat() call	*/
  14. #define MINT			/* library supports MiNT extensions to TOS */
  15.  
  16. #ifdef __MINT__
  17. #define MINT
  18. #endif
  19.  
  20. #ifdef O_BINARY
  21. #define FCMASK	O_BINARY
  22. #else
  23. #define FCMASK	0660
  24. #define O_BINARY 0
  25. #endif
  26.  
  27. #ifdef UNIXDEBUG
  28. #define remove(x)	unlink(x)
  29. #endif
  30.  
  31. /* configurable options */
  32. #define MFLOPPY			/* floppy support		*/
  33. #define RANDOM			/* improved random numbers	*/
  34. #define SHELL			/* allow spawning of shell	*/
  35. #define TERMLIB			/* use termcap			*/
  36. #define TEXTCOLOR		/* allow color			*/
  37. #define MAIL			/* enable the fake maildemon */
  38. #ifdef MINT
  39. #define SUSPEND			/* allow suspending the game	*/
  40. #endif
  41.  
  42. #ifndef TERMLIB
  43. #define ANSI_DEFAULT		/* use vt52 by default		*/
  44. #endif
  45.  
  46. #if defined(__GNUC__) || defined(__MINT__)
  47. /* actually, only more recent GNU C libraries have strcmpi
  48. * on the other hand, they're free -- if yours is out of
  49. * date, grab the most recent from atari.archive.umich.edu
  50. */
  51. #define STRNCMPI
  52. #undef strcmpi
  53. extern int FDECL(strcmpi,(const char *, const char *));
  54. extern int FDECL(strncmpi,(const char *, const char *, size_t));
  55. #endif
  56.  
  57. #include <termcap.h>
  58. #include <unistd.h>
  59. /* instead of including system.h from pcconf.h */
  60. #include <string.h>
  61. #include <stdlib.h>
  62. #include <types.h>
  63. #define SIG_RET_TYPE __Sigfunc
  64. #define SYSTEM_H
  65.  
  66. #ifndef MICRO_H
  67. #include "micro.h"
  68. #endif
  69. #ifndef PCCONF_H
  70. #include "pcconf.h"		/* remainder of stuff is same as the PC */
  71. #endif
  72.  
  73. #ifdef TEXTCOLOR
  74. extern boolean colors_changed;	/* in tos.c */
  75. #endif
  76.  
  77. #ifdef __GNUC__
  78. #define GCC_BUG		/* correct a gcc bug involving double for loops */
  79. #endif
  80.  
  81. #endif /* TOSCONF_H */
  82. #endif /* TOS */